fix following PEP 384
authorStefan Behnel <scoder@users.berlios.de>
Sat, 4 Dec 2010 08:45:56 +0000 (09:45 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 4 Dec 2010 08:45:56 +0000 (09:45 +0100)
Cython/Compiler/Builtin.py

index 06e96b94100ebefa7cfa48f15d8f5e326b9073f8..0ed1ea4f3c983c6d9c2c6c2fceb15106e41663cf 100644 (file)
@@ -123,7 +123,11 @@ static PyObject* __Pyx_PyRun(PyObject* o, PyObject* globals, PyObject* locals) {
                 "code object passed to exec() may not contain free variables");
             goto bad;
         }
+        #if PY_VERSION_HEX < 0x030200A4
        result = PyEval_EvalCode((PyCodeObject *)o, globals, locals);
+        #else
+       result = PyEval_EvalCode(o, globals, locals);
+        #endif
     } else {
         PyCompilerFlags cf;
         cf.cf_flags = 0;