]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-72631: Fix wrong documentation for GzipFile.peek (#29820)
author180909 <wjh180909@gmail.com>
Thu, 10 Apr 2025 11:21:32 +0000 (19:21 +0800)
committerGitHub <noreply@github.com>
Thu, 10 Apr 2025 11:21:32 +0000 (14:21 +0300)
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 f24e73517e576743f2d83d3e86dc8eef6d896cec..4222f1bb1f49aef160c733bd4ea259e69afa3550 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