commit | 196a530e00d88a138973bf9182e013937e293f97 | [log] [tgz] |
---|---|---|
author | Jeroen Demeyer <J.Demeyer@UGent.be> | Thu Jul 04 12:31:34 2019 +0200 |
committer | Inada Naoki <songofacandy@gmail.com> | Thu Jul 04 19:31:34 2019 +0900 |
tree | 35443abb5aa148b459f68ae43a18cdbb0627ba76 | |
parent | 9d40554e0da09a44a8547f3f3a2b9dedfeaf7928 [diff] [blame] |
bpo-37483: add _PyObject_CallOneArg() function (#14558)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 0cc1443..422f4b0 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c
@@ -2113,8 +2113,7 @@ _Py_IDENTIFIER(__missing__); missing = _PyObject_LookupSpecial((PyObject *)mp, &PyId___missing__); if (missing != NULL) { - res = PyObject_CallFunctionObjArgs(missing, - key, NULL); + res = _PyObject_CallOneArg(missing, key); Py_DECREF(missing); return res; }