Skip to content

Commit 6535703

Browse files
180909hugovkerlend-aasland
authored
pythongh-72631: Fix wrong documentation for GzipFile.peek (python#29820)
Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent b6760b7 commit 6535703

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Doc/library/gzip.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ The module defines the following items:
122122
.. method:: peek(n)
123123

124124
Read *n* uncompressed bytes without advancing the file position.
125-
At most one single read on the compressed stream is done to satisfy
126-
the call. The number of bytes returned may be more or less than
127-
requested.
125+
The number of bytes returned may be more or less than requested.
128126

129127
.. note:: While calling :meth:`peek` does not change the file position of
130128
the :class:`GzipFile`, it may change the position of the underlying

0 commit comments

Comments
 (0)