Fix faulty auto-merge

This commit is contained in:
rdb 2024-10-30 14:41:06 +01:00
parent e58449cde7
commit 0c1a0799b1
1 changed files with 0 additions and 22 deletions

View File

@ -285,28 +285,6 @@ ALWAYS_INLINE PyObject *Py_XNewRef(PyObject *obj) {
}
#endif
/* Python 3.10 */
#if PY_VERSION_HEX < 0x030A0000
INLINE int PyModule_AddObjectRef(PyObject *module, const char *name, PyObject *value) {
int ret = PyModule_AddObject(module, name, value);
if (ret == 0) {
Py_INCREF(value);
}
return ret;
}
ALWAYS_INLINE PyObject *Py_NewRef(PyObject *obj) {
Py_INCREF(obj);
return obj;
}
ALWAYS_INLINE PyObject *Py_XNewRef(PyObject *obj) {
Py_XINCREF(obj);
return obj;
}
#endif
/* Python 3.12 */
#if PY_VERSION_HEX < 0x030C0000