mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Use _PyObject_CallNoArg()
Replace:
PyObject_CallObject(callable, NULL)
with:
_PyObject_CallNoArg(callable)
This commit is contained in:
parent
2a358f862b
commit
a5ed5f000a
11 changed files with 33 additions and 33 deletions
|
|
@ -157,7 +157,7 @@ static void RunInteractiveHook(void)
|
|||
if (hook == NULL)
|
||||
PyErr_Clear();
|
||||
else {
|
||||
result = PyObject_CallObject(hook, NULL);
|
||||
result = _PyObject_CallNoArg(hook);
|
||||
Py_DECREF(hook);
|
||||
if (result == NULL)
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue