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

@ -1976,7 +1976,7 @@ defdict_missing(defdictobject *dd, PyObject *key)
Py_DECREF(tup);
return NULL;
}
value = PyEval_CallObject(factory, NULL);
value = _PyObject_CallNoArg(factory);
if (value == NULL)
return value;
if (PyObject_SetItem((PyObject *)dd, key, value) < 0) {