From: 180909 Date: Thu, 10 Apr 2025 11:21:32 +0000 (+0800) Subject: gh-72631: Fix wrong documentation for GzipFile.peek (#29820) X-Git-Tag: v3.14.0b1~546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65357032e80f8750dd102c82a8adc54de067fc38;p=thirdparty%2FPython%2Fcpython.git gh-72631: Fix wrong documentation for GzipFile.peek (#29820) Co-authored-by: Hugo van Kemenade Co-authored-by: Erlend E. Aasland --- diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index f24e73517e57..4222f1bb1f49 100644 --- a/Doc/library/gzip.rst +++ b/Doc/library/gzip.rst @@ -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