summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-11 08:59:05 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-07-11 08:59:05 (GMT)
commit59ad110d7a7784d53d0b502eebce0346597a6bef (patch)
tree8ccd39e358017efe2abe41912c2f9d567ee9f248 /Modules/cjkcodecs
parent2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6 (diff)
downloadcpython-59ad110d7a7784d53d0b502eebce0346597a6bef.zip
cpython-59ad110d7a7784d53d0b502eebce0346597a6bef.tar.gz
cpython-59ad110d7a7784d53d0b502eebce0346597a6bef.tar.bz2
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index 052ed88..4de6787 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -1776,7 +1776,7 @@ mbstreamwriter_iwrite(MultibyteStreamWriterObject *self,
if (str == NULL)
return -1;
- wr = _PyObject_CallMethodIdObjArgs(self->stream, &PyId_write, str, NULL);
+ wr = _PyObject_CallMethodIdOneArg(self->stream, &PyId_write, str);
Py_DECREF(str);
if (wr == NULL)
return -1;
@@ -1870,7 +1870,7 @@ _multibytecodec_MultibyteStreamWriter_reset_impl(MultibyteStreamWriterObject *se
if (PyBytes_Size(pwrt) > 0) {
PyObject *wr;
- wr = _PyObject_CallMethodIdObjArgs(self->stream, &PyId_write, pwrt);
+ wr = _PyObject_CallMethodIdOneArg(self->stream, &PyId_write, pwrt);
if (wr == NULL) {
Py_DECREF(pwrt);
return NULL;