Guest User

Untitled

a guest
Nov 16th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import lzma
  2.  
  3. def extract():
  4.     with lzma.LZMAFile("ffmpeg.xz", "rb") as c:
  5.         with open("ffmpeg2.exe", "wb") as r:
  6.             r.write(c.read())
  7.  
  8. def compress():
  9.     with open("ffmpeg.exe", "rb") as r:
  10.         with lzma.LZMAFile("ffmpeg.xz", "wb") as c:
  11.             c.write(r.read())
  12.  
  13. #compress();
  14. extract();
Add Comment
Please, Sign In to add comment