From: Éric Araujo Date: Tue, 17 Aug 2010 21:24:05 +0000 (+0000) Subject: Fix example X-Git-Tag: v3.2a2~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5be090bc3fafe10d699716cbe25800b5b69fa6d;p=thirdparty%2FPython%2Fcpython.git Fix example --- diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index 9958638785e8..2cece84f35d8 100644 --- a/Doc/library/gzip.rst +++ b/Doc/library/gzip.rst @@ -120,7 +120,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) Example of how to GZIP compress a binary string::