projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919ae40
)
fix following PEP 384
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 4 Dec 2010 08:45:56 +0000
(09:45 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 4 Dec 2010 08:45:56 +0000
(09:45 +0100)
Cython/Compiler/Builtin.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Builtin.py
b/Cython/Compiler/Builtin.py
index 06e96b94100ebefa7cfa48f15d8f5e326b9073f8..0ed1ea4f3c983c6d9c2c6c2fceb15106e41663cf 100644
(file)
--- a/
Cython/Compiler/Builtin.py
+++ b/
Cython/Compiler/Builtin.py
@@
-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;