[Python-checkins] cpython: Update GzipFile docstring to mention gzip.open()'s new text-mode support.
nadeem.vawda
python-checkins at python.org
Sat Jun 30 13:34:34 CEST 2012
http://hg.python.org/cpython/rev/b4ef0f7ad037
changeset: 77866:b4ef0f7ad037
user: Nadeem Vawda <nadeem.vawda at gmail.com>
date: Sat Jun 30 13:34:28 2012 +0200
summary:
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
files:
Lib/gzip.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/gzip.py b/Lib/gzip.py
--- a/Lib/gzip.py
+++ b/Lib/gzip.py
@@ -129,7 +129,7 @@
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.
"""
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list