From ff91f127bf2c11d05adb20f6e7f2ba234f1d6ec9 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 30 Oct 2024 21:51:56 +0100 Subject: [PATCH] py_compat: Fix Python 2.7 compilation error This code never actually gets compiled in Python 3 [skip ci] --- dtool/src/interrogatedb/py_compat.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dtool/src/interrogatedb/py_compat.cxx b/dtool/src/interrogatedb/py_compat.cxx index 91fe93d456..722bc8300b 100644 --- a/dtool/src/interrogatedb/py_compat.cxx +++ b/dtool/src/interrogatedb/py_compat.cxx @@ -33,11 +33,7 @@ size_t PyLongOrInt_AsSize_t(PyObject *vv) { size_t bytes; int one = 1; int res = _PyLong_AsByteArray((PyLongObject *)vv, (unsigned char *)&bytes, - SIZEOF_SIZE_T, (int)*(unsigned char*)&one, 0, -#if PY_VERSION_HEX >= 0x030d0000 - , 1 // with_exceptions -#endif - ); + SIZEOF_SIZE_T, (int)*(unsigned char*)&one, 0); if (res < 0) { return (size_t)res;