Commit 5a9ac970 authored by Jeremy Hylton's avatar Jeremy Hylton

Change default() to use getChildNodes() instead of getChildren()

parent 94afe32b
......@@ -44,9 +44,8 @@ class ASTVisitor:
self._cache = {}
def default(self, node, *args):
for child in node.getChildren():
if isinstance(child, ast.Node):
self.dispatch(child, *args)
for child in node.getChildNodes():
self.dispatch(child, *args)
def dispatch(self, node, *args):
self.node = node
......
......@@ -44,9 +44,8 @@ class ASTVisitor:
self._cache = {}
def default(self, node, *args):
for child in node.getChildren():
if isinstance(child, ast.Node):
self.dispatch(child, *args)
for child in node.getChildNodes():
self.dispatch(child, *args)
def dispatch(self, node, *args):
self.node = node
......
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