https://github.com/python/cpython/commit/65357032e80f8750dd102c82a8adc54de067fc38 commit: 65357032e80f8750dd102c82a8adc54de067fc38 branch: main author: 180909 <[email protected]> committer: hugovk <[email protected]> date: 2025-04-10T14:21:32+03:00 summary:
gh-72631: Fix wrong documentation for GzipFile.peek (#29820) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> files: M Doc/library/gzip.rst diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index f24e73517e5767..4222f1bb1f49ae 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
