Skip to content

Commit

Permalink
Restore old PyEval_EvalCode() signature for older versions of PyPy (G…
Browse files Browse the repository at this point in the history
…H-4236)

Partially reverts 1027db0
  • Loading branch information
mattip authored and scoder committed Feb 4, 2022
1 parent bbac8b5 commit 2d287a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Utility/Builtins.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2d287a6

Please sign in to comment.