Commit 97180987 authored by Vitja Makarov's avatar Vitja Makarov

Code cleanup

parent a664bdef
...@@ -1377,8 +1377,8 @@ class MarkClosureVisitor(CythonTransform): ...@@ -1377,8 +1377,8 @@ class MarkClosureVisitor(CythonTransform):
collector.visitchildren(node) collector.visitchildren(node)
if collector.yields: if collector.yields:
for i, yield_expr in enumerate(collector.yields): for i, yield_expr in enumerate(collector.yields, 1):
yield_expr.label_num = i + 1 yield_expr.label_num = i
gbody = Nodes.GeneratorBodyDefNode(pos=node.pos, gbody = Nodes.GeneratorBodyDefNode(pos=node.pos,
name=node.name, name=node.name,
......
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