]> granicus.if.org Git - python/commitdiff
the names attribute of Global is not a node
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 14 Sep 2001 22:40:36 +0000 (22:40 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 14 Sep 2001 22:40:36 +0000 (22:40 +0000)
Lib/compiler/ast.py
Tools/compiler/ast.txt
Tools/compiler/compiler/ast.py
Tools/compiler/compiler/ast.txt

index e5183faebd6c07c83cb8f8d0a53275d3a6650704..53dc410ee82f203c437280e237770c36430ff15d 100644 (file)
@@ -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),)
index 3e2a82d389ac49bd48b547bbde693fef3f740b3f..3f8953bea85a55eab2aacbad67072e68ab45bbb8 100644 (file)
@@ -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
index e5183faebd6c07c83cb8f8d0a53275d3a6650704..53dc410ee82f203c437280e237770c36430ff15d 100644 (file)
@@ -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),)
index 3e2a82d389ac49bd48b547bbde693fef3f740b3f..3f8953bea85a55eab2aacbad67072e68ab45bbb8 100644 (file)
@@ -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