# HG changeset patch # User Paul Boddie # Date 1342293596 -7200 # Node ID 2e9350facfb301ee1f8e909c26df754870dda6e3 # Parent a7d2b3dc0f65659e12717d25fcada79eae7f3a9b Added unit and missing _attrusers annotations. diff -r a7d2b3dc0f65 -r 2e9350facfb3 compiler/ast.py --- a/compiler/ast.py Sat Jul 14 19:36:46 2012 +0200 +++ b/compiler/ast.py Sat Jul 14 21:19:56 2012 +0200 @@ -493,6 +493,10 @@ self.decorators = decorators self.lineno = lineno + # Additional annotations. + + self.unit = None + def getChildren(self): children = [] children.append(self.name) @@ -839,6 +843,10 @@ if flags & CO_VARKEYWORDS: self.kwargs = 1 + # Additional annotations. + + self.unit = None + def getChildren(self): children = [] children.append(self.decorators) @@ -1346,6 +1354,10 @@ self.node = node self.lineno = lineno + # Additional annotations. + + self.unit = None + def getChildren(self): return self.doc, self.node @@ -1393,6 +1405,7 @@ self._scope = None self._attr = None + self._attrusers = None def getChildren(self): return self.name,