mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
distributed: Fix the import test (and syntax on Python 3)
This commit is contained in:
parent
f76b8a6ad8
commit
b72d1c198f
@ -340,10 +340,10 @@ class DistributedObjectAI(DistributedObjectBase):
|
||||
self.air.sendUpdate(self, fieldName, args)
|
||||
|
||||
def GetPuppetConnectionChannel(self, doId):
|
||||
return doId + (1001L << 32)
|
||||
return doId + (1001 << 32)
|
||||
|
||||
def GetAccountConnectionChannel(self, doId):
|
||||
return doId + (1003L << 32)
|
||||
return doId + (1003 << 32)
|
||||
|
||||
def GetAccountIDFromChannelCode(self, channel):
|
||||
return channel >> 32
|
||||
|
@ -270,10 +270,10 @@ class DistributedObjectUD(DistributedObjectBase):
|
||||
self.air.sendUpdate(self, fieldName, args)
|
||||
|
||||
def GetPuppetConnectionChannel(self, doId):
|
||||
return doId + (1001L << 32)
|
||||
return doId + (1001 << 32)
|
||||
|
||||
def GetAccountConnectionChannel(self, doId):
|
||||
return doId + (1003L << 32)
|
||||
return doId + (1003 << 32)
|
||||
|
||||
def GetAccountIDFromChannelCode(self, channel):
|
||||
return channel >> 32
|
||||
|
@ -98,7 +98,6 @@ import direct.distributed.InterestWatcher
|
||||
import direct.distributed.MsgTypes
|
||||
import direct.distributed.MsgTypesCMU
|
||||
import direct.distributed.NetMessenger
|
||||
import direct.distributed.OldClientRepository
|
||||
import direct.distributed.ParentMgr
|
||||
import direct.distributed.PyDatagram
|
||||
import direct.distributed.PyDatagramIterator
|
||||
|
Loading…
x
Reference in New Issue
Block a user