distributed: Fix the import test (and syntax on Python 3)
This commit is contained in:
parent
dfed8d2100
commit
df0c889092
|
|
@ -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…
Reference in New Issue