]> granicus.if.org Git - python/commitdiff
Fix example
authorÉric Araujo <merwok@netwok.org>
Tue, 17 Aug 2010 21:24:05 +0000 (21:24 +0000)
committerÉric Araujo <merwok@netwok.org>
Tue, 17 Aug 2010 21:24:05 +0000 (21:24 +0000)
Doc/library/gzip.rst

index 9958638785e84eefb0662d8e12669d77ff247f0a..2cece84f35d80d5b29f0ff4c7c3832b11ad38341 100644 (file)
@@ -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::