diff options
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r-- | Modules/_fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c index 60ca8c4..abd5d19 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c @@ -438,7 +438,7 @@ fileio_read(PyFileIOObject *self, PyObject *args) if (!self->readable) return err_mode("reading"); - if (!PyArg_ParseTuple(args, "|i", &size)) + if (!PyArg_ParseTuple(args, "|n", &size)) return NULL; if (size < 0) { |