mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00: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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue