From 59ad110d7a7784d53d0b502eebce0346597a6bef Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Thu, 11 Jul 2019 10:59:05 +0200 Subject: bpo-37547: add _PyObject_CallMethodOneArg (GH-14685) --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/arraymodule.c') diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 26c90a8a59..48986c4190 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1507,7 +1507,7 @@ array_array_tofile(arrayobject *self, PyObject *f) bytes = PyBytes_FromStringAndSize(ptr, size); if (bytes == NULL) return NULL; - res = _PyObject_CallMethodIdObjArgs(f, &PyId_write, bytes, NULL); + res = _PyObject_CallMethodIdOneArg(f, &PyId_write, bytes); Py_DECREF(bytes); if (res == NULL) return NULL; -- cgit v1.2.1