[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:
Miss Islington (bot) 2025-04-10 13:27:20 +02:00 committed by GitHub
parent f24f241802
commit b328e4bc57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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