[Python-checkins] r84159 - python/branches/py3k/Doc/library/gzip.rst
eric.araujo
python-checkins at python.org
Tue Aug 17 23:24:06 CEST 2010
Author: eric.araujo
Date: Tue Aug 17 23:24:05 2010
New Revision: 84159
Log:
Fix example
Modified:
python/branches/py3k/Doc/library/gzip.rst
Modified: python/branches/py3k/Doc/library/gzip.rst
==============================================================================
--- python/branches/py3k/Doc/library/gzip.rst (original)
+++ python/branches/py3k/Doc/library/gzip.rst Tue Aug 17 23:24:05 2010
@@ -120,7 +120,7 @@
import gzip
with open('/home/joe/file.txt', 'rb') as f_in:
- with f_out = gzip.open('/home/joe/file.txt.gz', 'wb') as f_out:
+ with gzip.open('/home/joe/file.txt.gz', 'wb') as f_out:
f_out.writelines(f_in)
Example of how to GZIP compress a binary string::
More information about the Python-checkins
mailing list