diff options
Diffstat (limited to 'Modules/_io/stringio.c')
-rw-r--r-- | Modules/_io/stringio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index 9e9724d..810cad6 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c @@ -408,8 +408,8 @@ stringio_iternext(stringio *self) } else { /* XXX is subclassing StringIO really supported? */ - line = PyObject_CallMethodObjArgs((PyObject *)self, - _PyIO_str_readline, NULL); + line = _PyObject_CallMethodNoArgs((PyObject *)self, + _PyIO_str_readline); if (line && !PyUnicode_Check(line)) { PyErr_Format(PyExc_OSError, "readline() should have returned a str object, " |