Skip to content

Instantly share code, notes, and snippets.

@rondinelisaad
Created October 16, 2015 01:58
Show Gist options
  • Save rondinelisaad/b2810ec94062df4e5743 to your computer and use it in GitHub Desktop.
Save rondinelisaad/b2810ec94062df4e5743 to your computer and use it in GitHub Desktop.
from sys import argv
import gzip
script, gzip_file = argv
with gzip.open(gzip_file) as g:
try:
while g.read(1024 * 1024):
pass
except IOError as e:
print("Corrompido!", e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment