mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-99300: Replace Py_INCREF() with Py_NewRef() (#99513)
Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef() and Py_XNewRef().
This commit is contained in:
parent
ea88d34de2
commit
3ed8803ef5
12 changed files with 22 additions and 44 deletions
|
|
@ -1652,8 +1652,7 @@ select_epoll___enter___impl(pyEpoll_Object *self)
|
|||
if (self->epfd < 0)
|
||||
return pyepoll_err_closed();
|
||||
|
||||
Py_INCREF(self);
|
||||
return (PyObject *)self;
|
||||
return Py_NewRef(self);
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue