mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.13] gh-72631: Fix wrong documentation for GzipFile.peek (GH-29820) (#132353)
Co-authored-by: 180909 <wjh180909@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
f24f241802
commit
b328e4bc57
1 changed files with 1 additions and 3 deletions
|
@ -122,9 +122,7 @@ The module defines the following items:
|
|||
.. method:: peek(n)
|
||||
|
||||
Read *n* uncompressed bytes without advancing the file position.
|
||||
At most one single read on the compressed stream is done to satisfy
|
||||
the call. The number of bytes returned may be more or less than
|
||||
requested.
|
||||
The number of bytes returned may be more or less than requested.
|
||||
|
||||
.. note:: While calling :meth:`peek` does not change the file position of
|
||||
the :class:`GzipFile`, it may change the position of the underlying
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue