From: Stefan Behnel Date: Thu, 9 Dec 2010 10:04:07 +0000 (+0100) Subject: Py2.3 fix X-Git-Tag: 0.14.beta0~2^2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=21dbe22995fb8d03014509ee4a8f4a5da18321a8;p=cython.git Py2.3 fix --- 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):