eric6/Graphics/GraphicsUtilities.py

changeset 8222
5994b80b8760
parent 7923
91e843545d9a
child 8286
62ae22eae123
--- a/eric6/Graphics/GraphicsUtilities.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/Graphics/GraphicsUtilities.py	Sun Apr 11 18:45:10 2021 +0200
@@ -65,11 +65,13 @@
         for current in stage:
             currentParents = parents.get(current, [])
             for parent in currentParents:
-                if parent in stage and parent != current:
-                    # might wind up removing current
-                    if current not in parents.get(parent, []):
-                        # is not mutually dependant
-                        removes.append(current)
+                if (
+                    parent in stage and
+                    parent != current and
+                    current not in parents.get(parent, [])
+                ):
+                    # is not mutually dependant
+                    removes.append(current)
         
         for remove in removes:
             while remove in stage:

eric ide

mercurial