Commit bc93a116 authored by Victor Stinner's avatar Victor Stinner

Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(),

io.BufferedReader._peek_unlocked(). Patch written by John O'Connor.
parent 20822680
...@@ -589,7 +589,7 @@ _bufferedreader_reset_buf(buffered *self); ...@@ -589,7 +589,7 @@ _bufferedreader_reset_buf(buffered *self);
static void static void
_bufferedwriter_reset_buf(buffered *self); _bufferedwriter_reset_buf(buffered *self);
static PyObject * static PyObject *
_bufferedreader_peek_unlocked(buffered *self, Py_ssize_t); _bufferedreader_peek_unlocked(buffered *self);
static PyObject * static PyObject *
_bufferedreader_read_all(buffered *self); _bufferedreader_read_all(buffered *self);
static PyObject * static PyObject *
...@@ -797,7 +797,7 @@ buffered_peek(buffered *self, PyObject *args) ...@@ -797,7 +797,7 @@ buffered_peek(buffered *self, PyObject *args)
goto end; goto end;
Py_CLEAR(res); Py_CLEAR(res);
} }
res = _bufferedreader_peek_unlocked(self, n); res = _bufferedreader_peek_unlocked(self);
end: end:
LEAVE_BUFFERED(self) LEAVE_BUFFERED(self)
...@@ -1611,7 +1611,7 @@ error: ...@@ -1611,7 +1611,7 @@ error:
} }
static PyObject * static PyObject *
_bufferedreader_peek_unlocked(buffered *self, Py_ssize_t n) _bufferedreader_peek_unlocked(buffered *self)
{ {
Py_ssize_t have, r; Py_ssize_t have, r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment