From 3baa597921ad36e4fec30c61ff054dc1481258cf Mon Sep 17 00:00:00 2001 From: Vitja Makarov Date: Wed, 12 Jan 2011 23:41:01 +0300 Subject: [PATCH] Fix cython compilation problem --- Cython/Compiler/ParseTreeTransforms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 4e759632..9ae67468 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -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: -- 2.26.2