Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b328e4b

Browse filesBrowse files
miss-islington180909hugovkerlend-aasland
authored
[3.13] gh-72631: Fix wrong documentation for GzipFile.peek (GH-29820) (#132353)
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>
1 parent f24f241 commit b328e4b
Copy full SHA for b328e4b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎Doc/library/gzip.rst

Copy file name to clipboardExpand all lines: Doc/library/gzip.rst
+1-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.