Graphics/GraphicsUtilities.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Graphics/GraphicsUtilities.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Graphics/GraphicsUtilities.py	Sat Jan 02 15:11:35 2010 +0000
@@ -42,7 +42,7 @@
         stage.append(nodes[0])
     
     taken.extend(stage)
-    nodes = filter(lambda x, l = stage: x not in l, nodes)
+    nodes = list(filter(lambda x, l = stage: x not in l, nodes))
     while nodes:
         previousStageChildren = []
         nodelen = len(nodes)
@@ -73,7 +73,7 @@
         
         stages.append(stage)
         taken.extend(stage)
-        nodes = filter(lambda x, l = stage: x not in l, nodes)
+        nodes = list(filter(lambda x, l = stage: x not in l, nodes))
         if nodelen == len(nodes):
             if noRecursion:
                 raise recursionError(nodes)

eric ide

mercurial