From: Vitja Makarov Date: Sat, 29 Jan 2011 11:38:33 +0000 (+0300) Subject: Code cleanup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=971809878f788175b41dfa94316917fc5bee61b5;p=cython.git Code cleanup --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 3ed5600a..225aad11 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1377,8 +1377,8 @@ class MarkClosureVisitor(CythonTransform): collector.visitchildren(node) if collector.yields: - for i, yield_expr in enumerate(collector.yields): - yield_expr.label_num = i + 1 + for i, yield_expr in enumerate(collector.yields, 1): + yield_expr.label_num = i gbody = Nodes.GeneratorBodyDefNode(pos=node.pos, name=node.name,