summaryrefslogtreecommitdiff
path: root/Modules/_io/fileio.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2017-02-04 17:37:00 -0800
committerSteve Dower <steve.dower@microsoft.com>2017-02-04 17:37:00 -0800
commita51d84bfb3b7f82b4b4e22c385cc7966378ae5c2 (patch)
treef09060bdd9bc041fc2942698eb7a46ea77b8e0fd /Modules/_io/fileio.c
parent2af0fb8818763f1942666dae0835baeab65340fc (diff)
parentcd72452eb70eeaed8cd39282a2bad320bc922f41 (diff)
downloadcpython-a51d84bfb3b7f82b4b4e22c385cc7966378ae5c2.tar.gz
Merge from 3.6
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;