fix PrintTree() debug helper for compiled Cython
authorStefan Behnel <stefan_ml@behnel.de>
Tue, 27 Nov 2012 06:07:07 +0000 (07:07 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Tue, 27 Nov 2012 06:07:07 +0000 (07:07 +0100)
Cython/Compiler/Visitor.py

index c9d8bae..f30127f 100644 (file)
@@ -519,7 +519,7 @@ class PrintTree(TreeVisitor):
 
     def __call__(self, tree, phase=None):
         print("Parse tree dump at phase '%s'" % phase)
-        self._visit(tree)
+        self.visit(tree)
         return tree
 
     # Don't do anything about process_list, the defaults gives