]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-72631: Fix wrong documentation for GzipFile.peek (GH-29820) (#132353)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Apr 2025 11:27:20 +0000 (13:27 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Apr 2025 11:27:20 +0000 (11:27 +0000)
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>
Doc/library/gzip.rst

index 6b6e158f6eba2cf5fa5c085b7de2e400cb7e9421..ccf9bbb28de14fb1bd343dfcff5abb6068580f21 100644 (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