# HG changeset patch # User Paul Boddie # Date 1282502120 -7200 # Node ID 023105a53af2999ef4893e4aefd6dcc64fdaaed4 # Parent 40bdd4e5f0f2b649d6035e2a4ab44bcc946f92c5 Added loop nodes for "for" and list comprehension flow branches. diff -r 40bdd4e5f0f2 -r 023105a53af2 micropython/inspect.py --- a/micropython/inspect.py Sun Aug 22 20:34:46 2010 +0200 +++ b/micropython/inspect.py Sun Aug 22 20:35:20 2010 +0200 @@ -738,7 +738,7 @@ # Enter the loop. # Propagate attribute usage to branches. - self.new_branch() + self.new_branch(node) self.dispatch(node.body) self.shelve_branch() @@ -919,7 +919,7 @@ # Enter the loop. # Propagate attribute usage to branches. - self.new_branch() + self.new_branch(node) for if_ in node.ifs: self.dispatch(if_)