From 971809878f788175b41dfa94316917fc5bee61b5 Mon Sep 17 00:00:00 2001 From: Vitja Makarov Date: Sat, 29 Jan 2011 14:38:33 +0300 Subject: [PATCH] Code cleanup --- Cython/Compiler/ParseTreeTransforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.26.2