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

@ -1843,7 +1843,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value)
PyObject *d;
int status;
d = PyObject_CallObject(cls, NULL);
d = _PyObject_CallNoArg(cls);
if (d == NULL)
return NULL;