Kaydet (Commit) fff252d2 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

the names attribute of Global is not a node

üst ad2dc3fc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment