the names attribute of Global is not a node
This commit is contained in:
parent
ad2dc3fc44
commit
fff252d20d
|
@ -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),)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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),)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue