diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-30 11:34:28 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-30 11:34:28 (GMT) |
commit | 83a4dd3fdfb1f38391f43ef0456a958f779a3955 (patch) | |
tree | a6d6b6e5f1d47158d1165ef1cdcc6a57335a0d4c /Lib/gzip.py | |
parent | 07a616d19ed4a77e9c134773197687072be57b44 (diff) | |
download | cpython-83a4dd3fdfb1f38391f43ef0456a958f779a3955.zip cpython-83a4dd3fdfb1f38391f43ef0456a958f779a3955.tar.gz cpython-83a4dd3fdfb1f38391f43ef0456a958f779a3955.tar.bz2 |
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index f6f63bb..8b89426 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. """ |