We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b78b29 commit 33f7feaCopy full SHA for 33f7fea
1 file changed
Modules/pwdmodule.c
@@ -327,9 +327,9 @@ pwd_getpwall_impl(PyObject *module)
327
PyMutex_Unlock(&getpwall_mutex);
328
#endif
329
/* Deferred decref on entries created above and added to the list. */
330
- Py_ssize_t n = PyList_GET_SIZE(d);
+ Py_ssize_t n = PyList_Size(d);
331
while (--n >= 0) {
332
- Py_DECREF(PyList_GET_ITEM(d, n));
+ Py_DECREF(PyList_GetItem(d, n));
333
}
334
if (failure) {
335
Py_XDECREF(orphan);
0 commit comments