summaryrefslogtreecommitdiffstats
path: root/Modules/_collectionsmodule.c
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-04 10:35:31 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-07-04 10:35:31 (GMT)
commit7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7 (patch)
tree14cc12990e39950f635afd510f813324b8ee444e /Modules/_collectionsmodule.c
parent196a530e00d88a138973bf9182e013937e293f97 (diff)
downloadcpython-7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7.zip
cpython-7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7.tar.gz
cpython-7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7.tar.bz2
bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)
Diffstat (limited to 'Modules/_collectionsmodule.c')
-rw-r--r--Modules/_collectionsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index cc7d3cf..7e9cf8a 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -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) {