Graphics/GraphicsUtilities.py

changeset 3621
15f23ed3f216
parent 3178
f25fc1364c88
child 4021
195a471c327b
--- a/Graphics/GraphicsUtilities.py	Fri May 30 13:17:20 2014 +0200
+++ b/Graphics/GraphicsUtilities.py	Fri May 30 15:16:40 2014 +0200
@@ -70,7 +70,7 @@
             for parent in currentParents:
                 if parent in stage and parent != current:
                     # might wind up removing current
-                    if not current in parents.get(parent, []):
+                    if current not in parents.get(parent, []):
                         # is not mutually dependant
                         removes.append(current)
         
@@ -105,9 +105,9 @@
     for sourceID, destinationID in routes:
         currentChildren = childrenTable.get(sourceID, [])
         currentParents = parentTable.get(destinationID, [])
-        if not destinationID in currentChildren:
+        if destinationID not in currentChildren:
             currentChildren.append(destinationID)
-        if not sourceID in currentParents:
+        if sourceID not in currentParents:
             currentParents.append(sourceID)
         childrenTable[sourceID] = currentChildren
         parentTable[destinationID] = currentParents

eric ide

mercurial