Fix faulty auto-merge
This commit is contained in:
parent
e58449cde7
commit
0c1a0799b1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue