Skip to content

Commit aaefe6d

Browse files
committed
fix for pypy3.9-v7.3.11
1 parent 513acb3 commit aaefe6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ PyThreadState_LeaveTracing(PyThreadState *tstate)
390390

391391

392392
// bpo-37194 added PyObject_CallNoArgs() to Python 3.9.0a1
393-
#if PY_VERSION_HEX < 0x030900A1 || defined(PYPY_VERSION)
393+
#if PY_VERSION_HEX < 0x030900A1 && !defined(PYPY_VERSION)
394394
PYCAPI_COMPAT_STATIC_INLINE(PyObject*)
395395
PyObject_CallNoArgs(PyObject *func)
396396
{
@@ -401,7 +401,7 @@ PyObject_CallNoArgs(PyObject *func)
401401

402402
// bpo-39245 made PyObject_CallOneArg() public (previously called
403403
// _PyObject_CallOneArg) in Python 3.9.0a4
404-
#if PY_VERSION_HEX < 0x030900A4 || defined(PYPY_VERSION)
404+
#if PY_VERSION_HEX < 0x030900A4 && !defined(PYPY_VERSION)
405405
PYCAPI_COMPAT_STATIC_INLINE(PyObject*)
406406
PyObject_CallOneArg(PyObject *func, PyObject *arg)
407407
{

0 commit comments

Comments
 (0)