Fix typo for IF statement.
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 28 May 2008 06:13:29 +0000 (23:13 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 28 May 2008 06:13:29 +0000 (23:13 -0700)
Cython/Compiler/Parsing.py

index 34df8cd51c21353c89f5c2a28b8260cc9d408757..e65e557e011c7e61688960cf0d1a8ad882ce66b1 100644 (file)
@@ -1286,7 +1286,7 @@ def p_DEF_statement(s):
     return Nodes.PassStatNode(pos)
 
 def p_IF_statement(s, level, cdef_flag, visibility, api):
-    pos = s.position
+    pos = s.position()
     saved_eval = s.compile_time_eval
     current_eval = saved_eval
     denv = s.compile_time_env