From bb8cd8275bf910117750356845814d4d9d998d6e Mon Sep 17 00:00:00 2001 From: Vitja Makarov Date: Mon, 14 Feb 2011 08:54:41 +0300 Subject: [PATCH] Fix Python2.4 issue --- 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 225aad11..3ed5600a 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, 1): - yield_expr.label_num = i + for i, yield_expr in enumerate(collector.yields): + yield_expr.label_num = i + 1 gbody = Nodes.GeneratorBodyDefNode(pos=node.pos, name=node.name, -- 2.26.2