Fix cython compilation problem
authorVitja Makarov <vitja.makarov@gmail.com>
Wed, 12 Jan 2011 20:41:01 +0000 (23:41 +0300)
committerVitja Makarov <vitja.makarov@gmail.com>
Wed, 12 Jan 2011 20:41:01 +0000 (23:41 +0300)
Cython/Compiler/ParseTreeTransforms.py

index 4e759632bf6b0ac0be74555a68ed9e6835bb13e4..9ae67468d5f40c2365500fefdc7b7505aef1da20 100644 (file)
@@ -1332,7 +1332,8 @@ class YieldNodeCollector(TreeVisitor):
         self.returns = []
         self.has_return_value = False
 
-    visit_Node = TreeVisitor.visitchildren
+    def visit_Node(self, node):
+        return self.visitchildren(node)
 
     def visit_YieldExprNode(self, node):
         if self.has_return_value: