Commit 3baa5979 authored by Vitja Makarov's avatar Vitja Makarov

Fix cython compilation problem

parent 9a9ca635
...@@ -1332,7 +1332,8 @@ class YieldNodeCollector(TreeVisitor): ...@@ -1332,7 +1332,8 @@ class YieldNodeCollector(TreeVisitor):
self.returns = [] self.returns = []
self.has_return_value = False self.has_return_value = False
visit_Node = TreeVisitor.visitchildren def visit_Node(self, node):
return self.visitchildren(node)
def visit_YieldExprNode(self, node): def visit_YieldExprNode(self, node):
if self.has_return_value: if self.has_return_value:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment