Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython: Update GzipFile docstring to mention gzip.open()'s new text-mode support.

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Jun 30, 2012, 4:34 AM

Post #1 of 1 (51 views)
Permalink
cpython: Update GzipFile docstring to mention gzip.open()'s new text-mode support.

http://hg.python.org/cpython/rev/b4ef0f7ad037
changeset: 77866:b4ef0f7ad037
user: Nadeem Vawda <nadeem.vawda [at] gmail>
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

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.