From: Nadeem Vawda Date: Sat, 30 Jun 2012 11:34:28 +0000 (+0200) Subject: Update GzipFile docstring to mention gzip.open()'s new text-mode support. X-Git-Tag: v3.3.0b2~362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83a4dd3fdfb1f38391f43ef0456a958f779a3955;p=thirdparty%2FPython%2Fcpython.git Update GzipFile docstring to mention gzip.open()'s new text-mode support. --- diff --git a/Lib/gzip.py b/Lib/gzip.py index f6f63bbc6e5e..8b8942642e73 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. """