]> granicus.if.org Git - python/commitdiff
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sat, 30 Jun 2012 11:34:28 +0000 (13:34 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sat, 30 Jun 2012 11:34:28 +0000 (13:34 +0200)
Lib/gzip.py

index f6f63bbc6e5ebce797bac385b09b893d188fe85a..8b8942642e73eeba44e2bfd736d7a70ee72d42d0 100644 (file)
@@ -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.
 
     """