Browse Source

formatting

Dave Schuyler 20 years ago
parent
commit
5f3c52e8b3

+ 2 - 2
direct/src/distributed/ClientRepository.py

@@ -383,7 +383,7 @@ class ClientRepository(ConnectionRepository):
             # Look up the object
             # Look up the object
             distObj = self.doId2do[doId]
             distObj = self.doId2do[doId]
             # remove the object from the dictionary
             # remove the object from the dictionary
-            del(self.doId2do[doId])
+            del self.doId2do[doId]
 
 
             # Only cache the object if it is a "cacheable" type
             # Only cache the object if it is a "cacheable" type
             # object; this way we don't clutter up the caches with
             # 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.
             # If it is in the dictionary, remove it.
             obj = self.doId2do[doId]
             obj = self.doId2do[doId]
             # Remove it from the dictionary
             # Remove it from the dictionary
-            del(self.doId2do[doId])
+            del self.doId2do[doId]
             # Disable, announce, and delete the object itself...
             # Disable, announce, and delete the object itself...
             # unless delayDelete is on...
             # unless delayDelete is on...
             obj.deleteOrDelay()
             obj.deleteOrDelay()

+ 2 - 2
direct/src/distributed/DoCollectionManager.py

@@ -235,7 +235,7 @@ class DoCollectionManager:
                     if len(self.zoneId2doIds[location]) == 0:
                     if len(self.zoneId2doIds[location]) == 0:
                         del self.zoneId2doIds[location]
                         del self.zoneId2doIds[location]
 
 
-            del(self.doId2do[do.doId])
+            del self.doId2do[do.doId]
     else:
     else:
         def removeDOFromTables(self, do):
         def removeDOFromTables(self, do):
             assert self.notify.debugStateCall(self)
             assert self.notify.debugStateCall(self)
@@ -251,7 +251,7 @@ class DoCollectionManager:
                     if len(self.zoneId2doIds[do.zoneId]) == 0:
                     if len(self.zoneId2doIds[do.zoneId]) == 0:
                         del self.zoneId2doIds[do.zoneId]
                         del self.zoneId2doIds[do.zoneId]
 
 
-            del(self.doId2do[do.doId])
+            del self.doId2do[do.doId]
         
         
     if wantOtpServer:
     if wantOtpServer:
         def changeDOZoneInTables(self, do, newParentId, newZoneId, oldParentId, oldZoneId):
         def changeDOZoneInTables(self, do, newParentId, newZoneId, oldParentId, oldZoneId):