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,
|
return self.names,
|
||||||
|
|
||||||
def getChildNodes(self):
|
def getChildNodes(self):
|
||||||
return self.names,
|
return ()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "Global(%s)" % (repr(self.names),)
|
return "Global(%s)" % (repr(self.names),)
|
||||||
|
|
|
@ -43,7 +43,7 @@ Dict: items!
|
||||||
Not: expr
|
Not: expr
|
||||||
Compare: expr, ops!
|
Compare: expr, ops!
|
||||||
Name: name*
|
Name: name*
|
||||||
Global: names
|
Global: names*
|
||||||
Backquote: expr
|
Backquote: expr
|
||||||
Getattr: expr, attrname*
|
Getattr: expr, attrname*
|
||||||
CallFunc: node, args!, star_args& = None, dstar_args& = None
|
CallFunc: node, args!, star_args& = None, dstar_args& = None
|
||||||
|
|
|
@ -146,7 +146,7 @@ class Global(Node):
|
||||||
return self.names,
|
return self.names,
|
||||||
|
|
||||||
def getChildNodes(self):
|
def getChildNodes(self):
|
||||||
return self.names,
|
return ()
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "Global(%s)" % (repr(self.names),)
|
return "Global(%s)" % (repr(self.names),)
|
||||||
|
|
|
@ -43,7 +43,7 @@ Dict: items!
|
||||||
Not: expr
|
Not: expr
|
||||||
Compare: expr, ops!
|
Compare: expr, ops!
|
||||||
Name: name*
|
Name: name*
|
||||||
Global: names
|
Global: names*
|
||||||
Backquote: expr
|
Backquote: expr
|
||||||
Getattr: expr, attrname*
|
Getattr: expr, attrname*
|
||||||
CallFunc: node, args!, star_args& = None, dstar_args& = None
|
CallFunc: node, args!, star_args& = None, dstar_args& = None
|
||||||
|
|
Loading…
Reference in New Issue