mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
This commit is contained in:
parent
07a616d19e
commit
83a4dd3fdf
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class GzipFile(io.BufferedIOBase):
|
|||
the exception of the readinto() and truncate() methods.
|
||||
|
||||
This class only supports opening files in binary mode. If you need to open a
|
||||
compressed file in text mode, wrap your GzipFile with an io.TextIOWrapper.
|
||||
compressed file in text mode, use the gzip.open() function.
|
||||
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue