From 83a4dd3fdfb1f38391f43ef0456a958f779a3955 Mon Sep 17 00:00:00 2001 From: Nadeem Vawda Date: Sat, 30 Jun 2012 13:34:28 +0200 Subject: [PATCH] Update GzipFile docstring to mention gzip.open()'s new text-mode support. --- Lib/gzip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. """