From: Jeremy Hylton Date: Fri, 14 Sep 2001 22:40:36 +0000 (+0000) Subject: the names attribute of Global is not a node X-Git-Tag: v2.2.1c1~1797 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fff252d20d634a3c86f06ef8585c3111c1d50091;p=python the names attribute of Global is not a node --- diff --git a/Lib/compiler/ast.py b/Lib/compiler/ast.py index e5183faebd..53dc410ee8 100644 --- a/Lib/compiler/ast.py +++ b/Lib/compiler/ast.py @@ -146,7 +146,7 @@ class Global(Node): return self.names, def getChildNodes(self): - return self.names, + return () def __repr__(self): return "Global(%s)" % (repr(self.names),) diff --git a/Tools/compiler/ast.txt b/Tools/compiler/ast.txt index 3e2a82d389..3f8953bea8 100644 --- a/Tools/compiler/ast.txt +++ b/Tools/compiler/ast.txt @@ -43,7 +43,7 @@ Dict: items! Not: expr Compare: expr, ops! Name: name* -Global: names +Global: names* Backquote: expr Getattr: expr, attrname* CallFunc: node, args!, star_args& = None, dstar_args& = None diff --git a/Tools/compiler/compiler/ast.py b/Tools/compiler/compiler/ast.py index e5183faebd..53dc410ee8 100644 --- a/Tools/compiler/compiler/ast.py +++ b/Tools/compiler/compiler/ast.py @@ -146,7 +146,7 @@ class Global(Node): return self.names, def getChildNodes(self): - return self.names, + return () def __repr__(self): return "Global(%s)" % (repr(self.names),) diff --git a/Tools/compiler/compiler/ast.txt b/Tools/compiler/compiler/ast.txt index 3e2a82d389..3f8953bea8 100644 --- a/Tools/compiler/compiler/ast.txt +++ b/Tools/compiler/compiler/ast.txt @@ -43,7 +43,7 @@ Dict: items! Not: expr Compare: expr, ops! Name: name* -Global: names +Global: names* Backquote: expr Getattr: expr, attrname* CallFunc: node, args!, star_args& = None, dstar_args& = None