commit | 5a9ac9704094f13c5bdfc67080a58279699d8e47 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Aug 29 18:17:22 2001 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Aug 29 18:17:22 2001 +0000 |
tree | 34fbf7422dc4476bf66d651f5f83c54698c7003e | |
parent | 94afe32b5eabf962c872850b10886f4545b02614 [diff] [blame] |
Change default() to use getChildNodes() instead of getChildren()
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 @@ 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