Guest User

Untitled

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import gzip
  2. destination = '/home/test/1.txt.gz'
  3. f_in = gzip.open(destination, 'rb')
  4. destination1 = destination.replace('.gz','')
  5. f_out = open(destination1,"wb")
  6. shutil.copyfileobj(f_in, f_out)
Add Comment
Please, Sign In to add comment