Use _PyObject_CallNoArg()

Replace:
    PyObject_CallObject(callable, NULL)
with:
    _PyObject_CallNoArg(callable)
This commit is contained in:
Victor Stinner 2016-12-06 18:45:50 +01:00
parent 2a358f862b
commit a5ed5f000a
11 changed files with 33 additions and 33 deletions

View file

@ -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;