diff --git a/Lib/gzip.py b/Lib/gzip.py index f6f63bbc6e5..8b8942642e7 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -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. """