From: Stefan Behnel Date: Sun, 2 Dec 2007 11:07:35 +0000 (+0100) Subject: fixed broken call to compiler error function X-Git-Tag: 0.9.6.14~29^2~62^2~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c9e64ef4eeb2e0129744d329e036c56d2ee9f31f;p=cython.git fixed broken call to compiler error function --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 47f8c475..d751768e 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1202,7 +1202,8 @@ def p_with_statement(s): body = p_suite(s) return Nodes.GILStatNode(pos, state = state, body = body) else: - s.error(pos, "Only 'with gil' and 'with nogil' implemented") + s.error("Only 'with gil' and 'with nogil' implemented", + pos = pos) def p_simple_statement(s): #print "p_simple_statement:", s.sy, s.systring ###