From 9cd464d66b45fd4392745ddbea9048188172d010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Tue, 17 Aug 2010 21:35:09 +0000 Subject: [PATCH] Merged revisions 84159 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ........ r84159 | eric.araujo | 2010-08-17 23:24:05 +0200 (mar., 17 août 2010) | 1 line Fix example ........ --- Doc/library/gzip.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index 022bef721b7..894a423a1dd 100644 --- a/Doc/library/gzip.rst +++ b/Doc/library/gzip.rst @@ -102,7 +102,7 @@ Example of how to GZIP compress an existing file:: 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)