fixed broken call to compiler error function
authorStefan Behnel <scoder@users.berlios.de>
Sun, 2 Dec 2007 11:07:35 +0000 (12:07 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 2 Dec 2007 11:07:35 +0000 (12:07 +0100)
Cython/Compiler/Parsing.py

index 47f8c4756ac2cbc1540ca945f03187030cd8a02f..d751768ee36ff26dbeb3fe82f18bcb83f4810ab2 100644 (file)
@@ -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 ###