summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 22:40:36 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-14 22:40:36 (GMT)
commitfff252d20d634a3c86f06ef8585c3111c1d50091 (patch)
tree3c86642cf6d55e3cf9270c6eb794735e7766707d /Tools
parentad2dc3fc4427c640fbdc098922c9921e0f8894c0 (diff)
downloadcpython-fff252d20d634a3c86f06ef8585c3111c1d50091.zip
cpython-fff252d20d634a3c86f06ef8585c3111c1d50091.tar.gz
cpython-fff252d20d634a3c86f06ef8585c3111c1d50091.tar.bz2
the names attribute of Global is not a node
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/ast.txt2
-rw-r--r--Tools/compiler/compiler/ast.py2
-rw-r--r--Tools/compiler/compiler/ast.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/Tools/compiler/ast.txt b/Tools/compiler/ast.txt
index 3e2a82d..3f8953b 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 e5183fa..53dc410 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 3e2a82d..3f8953b 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