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

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

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