diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-31 22:01:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-31 22:01:24 (GMT) |
commit | bc93a116eb8f73bae881503feb17d966d61680ed (patch) | |
tree | e58c54615189c917ba93350cb274d19d6b9a4870 /Modules | |
parent | 208226802572c8eeda17b3a0d7f214b57c87f7ab (diff) | |
download | cpython-bc93a116eb8f73bae881503feb17d966d61680ed.zip cpython-bc93a116eb8f73bae881503feb17d966d61680ed.tar.gz cpython-bc93a116eb8f73bae881503feb17d966d61680ed.tar.bz2 |
Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(),
io.BufferedReader._peek_unlocked(). Patch written by John O'Connor.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/bufferedio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c index 63ae1cb..cdaa36e 100644 --- a/Modules/_io/bufferedio.c +++ b/Modules/_io/bufferedio.c @@ -589,7 +589,7 @@ _bufferedreader_reset_buf(buffered *self); static void _bufferedwriter_reset_buf(buffered *self); static PyObject * -_bufferedreader_peek_unlocked(buffered *self, Py_ssize_t); +_bufferedreader_peek_unlocked(buffered *self); static PyObject * _bufferedreader_read_all(buffered *self); static PyObject * @@ -797,7 +797,7 @@ buffered_peek(buffered *self, PyObject *args) goto end; Py_CLEAR(res); } - res = _bufferedreader_peek_unlocked(self, n); + res = _bufferedreader_peek_unlocked(self); end: LEAVE_BUFFERED(self) @@ -1611,7 +1611,7 @@ error: } static PyObject * -_bufferedreader_peek_unlocked(buffered *self, Py_ssize_t n) +_bufferedreader_peek_unlocked(buffered *self) { Py_ssize_t have, r; |