mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Merged revisions 84159 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84159 | eric.araujo | 2010-08-17 23:24:05 +0200 (mar., 17 août 2010) | 1 line Fix example ........
This commit is contained in:
parent
af528da7cd
commit
9cd464d66b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue