summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 022bef7..894a423 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)