Graphics/GraphicsUtilities.py

changeset 5148
1a879f9af1c0
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
--- a/Graphics/GraphicsUtilities.py	Sun Sep 04 17:16:38 2016 +0200
+++ b/Graphics/GraphicsUtilities.py	Sun Sep 04 17:27:43 2016 +0200
@@ -48,7 +48,7 @@
         stage.append(nodes[0])
     
     taken.extend(stage)
-    nodes = list(filter(lambda x, l=stage: x not in l, nodes))
+    nodes = list(filter(lambda x, li=stage: x not in li, nodes))
     while nodes:
         previousStageChildren = []
         nodelen = len(nodes)
@@ -80,7 +80,7 @@
         
         stages.append(stage)
         taken.extend(stage)
-        nodes = list(filter(lambda x, l=stage: x not in l, nodes))
+        nodes = list(filter(lambda x, li=stage: x not in li, nodes))
         if nodelen == len(nodes):
             if noRecursion:
                 raise RecursionError(nodes)

eric ide

mercurial