micropython/trans.py | raw changeset files shortlog |
1.1 --- a/micropython/trans.py Sat Jun 12 23:09:30 2010 +0200 1.2 +++ b/micropython/trans.py Sun Jun 13 02:24:35 2010 +0200 1.3 @@ -1160,7 +1160,7 @@ 1.4 1.5 # Get the expected scope of the name. 1.6 1.7 - scope = self.get_scope(name) 1.8 + scope = getattr(node, "_scope", None) or self.get_scope(name) 1.9 1.10 #print self.module.name, node.lineno, name, predicted_scope 1.11 self._generateName(name, scope, classes, node)