From: Stefan Behnel Date: Sat, 4 Dec 2010 08:45:56 +0000 (+0100) Subject: fix following PEP 384 X-Git-Tag: 0.14.alpha0~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b121d8e901582c0564e5dc9fa18275f83f15d8d9;p=cython.git fix following PEP 384 --- diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 06e96b94..0ed1ea4f 100644 --- 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;