summaryrefslogtreecommitdiff
path: root/Modules/_io/fileio.c
diff options
context:
space:
mode:
author?ukasz Langa <lukasz@langa.pl>2017-02-10 00:20:16 -0800
committer?ukasz Langa <lukasz@langa.pl>2017-02-10 00:20:16 -0800
commit8972587fab93cd27ac78b4eab3805f5e11164cb9 (patch)
tree3b6b18367a3054c41f3a186d60c321ef9a08ee38 /Modules/_io/fileio.c
parentc7a3f78cc193bfa7fc874f49ec2e0799b32da817 (diff)
parent2328d19475109a50de26fa42832a5286824b0391 (diff)
downloadcpython-8972587fab93cd27ac78b4eab3805f5e11164cb9.tar.gz
Merge 3.6 (fix #29519)
Diffstat (limited to 'Modules/_io/fileio.c')
-rw-r--r--Modules/_io/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 7f3bcab962..67d5e3eec9 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -153,8 +153,8 @@ _io_FileIO_close_impl(fileio *self)
PyObject *exc, *val, *tb;
int rc;
_Py_IDENTIFIER(close);
- res = _PyObject_CallMethodId((PyObject*)&PyRawIOBase_Type,
- &PyId_close, "O", self);
+ res = _PyObject_CallMethodIdObjArgs((PyObject*)&PyRawIOBase_Type,
+ &PyId_close, self, NULL);
if (!self->closefd) {
self->fd = -1;
return res;