bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 422f4b0..b6205d9 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -4159,7 +4159,7 @@
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_difference_update, other, NULL);
+ tmp = _PyObject_CallMethodIdOneArg(result, &PyId_difference_update, other);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;
@@ -4179,7 +4179,7 @@
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_intersection_update, other, NULL);
+ tmp = _PyObject_CallMethodIdOneArg(result, &PyId_intersection_update, other);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;
@@ -4199,7 +4199,7 @@
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_update, other, NULL);
+ tmp = _PyObject_CallMethodIdOneArg(result, &PyId_update, other);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;
@@ -4219,7 +4219,7 @@
if (result == NULL)
return NULL;
- tmp = _PyObject_CallMethodIdObjArgs(result, &PyId_symmetric_difference_update, other, NULL);
+ tmp = _PyObject_CallMethodIdOneArg(result, &PyId_symmetric_difference_update, other);
if (tmp == NULL) {
Py_DECREF(result);
return NULL;