diff options
Diffstat (limited to 'Lib/compiler/visitor.py')
-rw-r--r-- | Lib/compiler/visitor.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/compiler/visitor.py b/Lib/compiler/visitor.py index 3f2ae66..0560619 100644 --- a/Lib/compiler/visitor.py +++ b/Lib/compiler/visitor.py @@ -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 |