gzip.open(zipfile).read() # will give you the contents of the file in a single string. with open(tmpfile, "wb") as tmp: shutil.copyfileobj(gzip.open(zipfile), tmp)
Post a Comment
No comments:
Post a Comment