From f5be090bc3fafe10d699716cbe25800b5b69fa6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89ric=20Araujo?= Date: Tue, 17 Aug 2010 21:24:05 +0000 Subject: [PATCH] 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 9958638785..2cece84f35 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:: -- 2.40.0