From c9e64ef4eeb2e0129744d329e036c56d2ee9f31f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 2 Dec 2007 12:07:35 +0100 Subject: [PATCH] fixed broken call to compiler error function --- Cython/Compiler/Parsing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ### -- 2.26.2