mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue