diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-06-17 20:57:51 +0300 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-02-04 11:11:10 +0100 |
commit | 2d287a6191bbba1e120ba9240b24ce364c443204 (patch) | |
tree | c34f422f9157c7fc163ee2001ad81d3d181daea2 | |
parent | bbac8b5476b1b97afcbac69e3079c11223911908 (diff) | |
download | cython-2d287a6191bbba1e120ba9240b24ce364c443204.tar.gz |
Restore old PyEval_EvalCode() signature for older versions of PyPy (GH-4236)
Partially reverts https://github.com/cython/cython/commit/1027db04fb7c5bbfea2b9bcdfce0b1f384e26a93
-rw-r--r-- | Cython/Utility/Builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/Builtins.c b/Cython/Utility/Builtins.c index 1ffb3bceb..32aeff8f2 100644 --- a/Cython/Utility/Builtins.c +++ b/Cython/Utility/Builtins.c @@ -120,7 +120,7 @@ static PyObject* __Pyx_PyExec3(PyObject* o, PyObject* globals, PyObject* locals) "code object passed to exec() may not contain free variables"); goto bad; } - #if CYTHON_COMPILING_IN_PYPY || PY_VERSION_HEX < 0x030200B1 + #if PY_VERSION_HEX < 0x030200B1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400) result = PyEval_EvalCode((PyCodeObject *)o, globals, locals); #else result = PyEval_EvalCode(o, globals, locals); |