From b121d8e901582c0564e5dc9fa18275f83f15d8d9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 4 Dec 2010 09:45:56 +0100 Subject: [PATCH] fix following PEP 384 --- Cython/Compiler/Builtin.py | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.26.2