bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)

This commit is contained in:
Jeroen Demeyer 2019-07-04 12:35:31 +02:00 committed by Inada Naoki
parent 196a530e00
commit 7f41c8e0dd
6 changed files with 15 additions and 16 deletions

View file

@ -104,7 +104,7 @@ done. This can be done using the :c:func:`PyErr_Fetch` and
/* This saves the current exception state */
PyErr_Fetch(&err_type, &err_value, &err_traceback);
cbresult = PyObject_CallObject(self->my_callback, NULL);
cbresult = PyObject_CallNoArgs(self->my_callback);
if (cbresult == NULL)
PyErr_WriteUnraisable(self->my_callback);
else