Skip to content

Commit 33f7fea

Browse files
committed
Switch back to using functions available in the limited API.
1 parent 6b78b29 commit 33f7fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/pwdmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ pwd_getpwall_impl(PyObject *module)
327327
PyMutex_Unlock(&getpwall_mutex);
328328
#endif
329329
/* Deferred decref on entries created above and added to the list. */
330-
Py_ssize_t n = PyList_GET_SIZE(d);
330+
Py_ssize_t n = PyList_Size(d);
331331
while (--n >= 0) {
332-
Py_DECREF(PyList_GET_ITEM(d, n));
332+
Py_DECREF(PyList_GetItem(d, n));
333333
}
334334
if (failure) {
335335
Py_XDECREF(orphan);

0 commit comments

Comments
 (0)