1.1 --- a/micropython/inspect.py Mon Mar 17 22:40:50 2014 +0100
1.2 +++ b/micropython/inspect.py Tue Apr 01 00:19:03 2014 +0200
1.3 @@ -1146,12 +1146,17 @@
1.4 # NOTE: manually generating code in micropython.ast.
1.5
1.6 self.expr = make_instance() # each element is a result of a function call
1.7 +
1.8 + # Propagate attribute usage to branches.
1.9 +
1.10 + self.new_branch(node)
1.11 +
1.12 + # Evaluate the assignment in the loop.
1.13 +
1.14 self.dispatch(node.assign)
1.15
1.16 # Enter the loop.
1.17 - # Propagate attribute usage to branches.
1.18
1.19 - self.new_branch(node)
1.20 self.dispatch(node.body)
1.21
1.22 self.resume_continuing_branches()