summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-29 18:17:22 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-29 18:17:22 (GMT)
commit5a9ac9704094f13c5bdfc67080a58279699d8e47 (patch)
tree34fbf7422dc4476bf66d651f5f83c54698c7003e /Tools
parent94afe32b5eabf962c872850b10886f4545b02614 (diff)
downloadcpython-5a9ac9704094f13c5bdfc67080a58279699d8e47.zip
cpython-5a9ac9704094f13c5bdfc67080a58279699d8e47.tar.gz
cpython-5a9ac9704094f13c5bdfc67080a58279699d8e47.tar.bz2
Change default() to use getChildNodes() instead of getChildren()
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/compiler/visitor.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/compiler/compiler/visitor.py b/Tools/compiler/compiler/visitor.py
index 3f2ae66..0560619 100644
--- a/Tools/compiler/compiler/visitor.py
+++ b/Tools/compiler/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