diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index a4a5be2c30..b53b327c81 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -383,7 +383,7 @@ class ClientRepository(ConnectionRepository): # Look up the object distObj = self.doId2do[doId] # remove the object from the dictionary - del(self.doId2do[doId]) + del self.doId2do[doId] # Only cache the object if it is a "cacheable" type # object; this way we don't clutter up the caches with @@ -422,7 +422,7 @@ class ClientRepository(ConnectionRepository): # If it is in the dictionary, remove it. obj = self.doId2do[doId] # Remove it from the dictionary - del(self.doId2do[doId]) + del self.doId2do[doId] # Disable, announce, and delete the object itself... # unless delayDelete is on... obj.deleteOrDelay() diff --git a/direct/src/distributed/DoCollectionManager.py b/direct/src/distributed/DoCollectionManager.py index 9b45480683..a27af0f8f8 100755 --- a/direct/src/distributed/DoCollectionManager.py +++ b/direct/src/distributed/DoCollectionManager.py @@ -235,7 +235,7 @@ class DoCollectionManager: if len(self.zoneId2doIds[location]) == 0: del self.zoneId2doIds[location] - del(self.doId2do[do.doId]) + del self.doId2do[do.doId] else: def removeDOFromTables(self, do): assert self.notify.debugStateCall(self) @@ -251,7 +251,7 @@ class DoCollectionManager: if len(self.zoneId2doIds[do.zoneId]) == 0: del self.zoneId2doIds[do.zoneId] - del(self.doId2do[do.doId]) + del self.doId2do[do.doId] if wantOtpServer: def changeDOZoneInTables(self, do, newParentId, newZoneId, oldParentId, oldZoneId):