Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83a4dd3

Browse files
committed
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
1 parent 07a616d commit 83a4dd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class GzipFile(io.BufferedIOBase):
129129
the exception of the readinto() and truncate() methods.
130130
131131
This class only supports opening files in binary mode. If you need to open a
132-
compressed file in text mode, wrap your GzipFile with an io.TextIOWrapper.
132+
compressed file in text mode, use the gzip.open() function.
133133
134134
"""
135135

0 commit comments

Comments
 (0)