summaryrefslogtreecommitdiff
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-11 10:59:05 +0200
committerInada Naoki <songofacandy@gmail.com>2019-07-11 17:59:05 +0900
commit59ad110d7a7784d53d0b502eebce0346597a6bef (patch)
tree8ccd39e358017efe2abe41912c2f9d567ee9f248 /Modules/arraymodule.c
parent2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6 (diff)
downloadcpython-git-59ad110d7a7784d53d0b502eebce0346597a6bef.tar.gz
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
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;