From 21dbe22995fb8d03014509ee4a8f4a5da18321a8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 9 Dec 2010 11:04:07 +0100 Subject: [PATCH] Py2.3 fix --- Cython/Compiler/Parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 54b8665b..f2994d03 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -877,7 +877,7 @@ def p_comp_for(s, body): pos = s.position() s.next() kw = p_for_bounds(s, allow_testlist=False) - kw.update(else_clause = None, body = p_comp_iter(s, body)) + kw.update(dict(else_clause = None, body = p_comp_iter(s, body))) return Nodes.ForStatNode(pos, **kw) def p_comp_if(s, body): @@ -1373,7 +1373,7 @@ def p_for_statement(s): kw = p_for_bounds(s, allow_testlist=True) body = p_suite(s) else_clause = p_else_clause(s) - kw.update(body = body, else_clause = else_clause) + kw.update(dict(body = body, else_clause = else_clause)) return Nodes.ForStatNode(pos, **kw) def p_for_bounds(s, allow_testlist=True): -- 2.26.2