the names attribute of Global is not a node

This commit is contained in:
Jeremy Hylton 2001-09-14 22:40:36 +00:00
parent ad2dc3fc44
commit fff252d20d
4 changed files with 4 additions and 4 deletions

View 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),)

View 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

View 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),)

View 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