mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix example
This commit is contained in:
parent
cdfe1c54fc
commit
f5be090bc3
1 changed files with 1 additions and 1 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue