mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)
This commit is contained in:
parent
196a530e00
commit
7f41c8e0dd
6 changed files with 15 additions and 16 deletions
|
|
@ -433,7 +433,7 @@ run_at_forkers(PyObject *lst, int reverse)
|
|||
for (i = 0; i < PyList_GET_SIZE(cpy); i++) {
|
||||
PyObject *func, *res;
|
||||
func = PyList_GET_ITEM(cpy, i);
|
||||
res = PyObject_CallObject(func, NULL);
|
||||
res = _PyObject_CallNoArg(func);
|
||||
if (res == NULL)
|
||||
PyErr_WriteUnraisable(func);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue