From 762f93ff2efd6b7ef0177cad57939c0ab2002eac Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Mon, 8 Jul 2019 10:19:25 +0200 Subject: bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) --- Modules/_collectionsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_collectionsmodule.c') diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 7e9cf8a283..1d23973fd0 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -2039,7 +2039,7 @@ defdict_reduce(defdictobject *dd, PyObject *Py_UNUSED(ignored)) args = PyTuple_Pack(1, dd->default_factory); if (args == NULL) return NULL; - items = _PyObject_CallMethodId((PyObject *)dd, &PyId_items, NULL); + items = _PyObject_CallMethodIdNoArgs((PyObject *)dd, &PyId_items); if (items == NULL) { Py_DECREF(args); return NULL; -- cgit v1.2.1