mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-99300: Use Py_NewRef() in Modules/ directory (#99440)
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in test C files of the Modules/ directory.
This commit is contained in:
parent
0bedc28d14
commit
bbba3f3f43
6 changed files with 41 additions and 82 deletions
|
@ -202,6 +202,5 @@ TESTNAME(PyObject *error(const char*))
|
|||
Py_DECREF(Py_None);
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
return Py_NewRef(Py_None);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue