changeset 68:800d8d768d03

Simplified code.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Wed, 27 May 2009 13:45:16 +0200
parents e228c35b36c0
children 2ae98ac0f77f
files pysmcl/flow.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/flow.py	Wed May 27 11:35:15 2009 +0200
+++ b/pysmcl/flow.py	Wed May 27 13:45:16 2009 +0200
@@ -114,14 +114,14 @@
             current = worklist.pop()
             children = []
             for n in current.children:
-                if n in processed.keys():
+                if n in processed:
                     children.append(processed[n])
                 else:
                     pending_list[n] = Node([], pretty(n))
                     children.append(pending_list[n])
                     worklist.append(n)
 
-            if current in pending_list.keys():
+            if current in pending_list:
                 node = pending_list[current]
                 node.out = children
                 del pending_list[current]