summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-08-17 21:24:05 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-08-17 21:24:05 (GMT)
commitf5be090bc3fafe10d699716cbe25800b5b69fa6d (patch)
tree1c7b22acf27d2beda05df132f8e39371150e6bf0 /Doc
parentcdfe1c54fc528f4c4688bbd5a2b839f0f799f6e7 (diff)
downloadcpython-f5be090bc3fafe10d699716cbe25800b5b69fa6d.zip
cpython-f5be090bc3fafe10d699716cbe25800b5b69fa6d.tar.gz
cpython-f5be090bc3fafe10d699716cbe25800b5b69fa6d.tar.bz2
Fix example
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/gzip.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index 9958638..2cece84 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::