Merge pull request #365 from PaleNeutron/develop

fix a bug bug with VERIFY MD5 CHECKSUMS
This commit is contained in:
Paul Romano 2015-02-25 08:03:05 -05:00
commit efb3ca0406

View file

@ -79,7 +79,7 @@ for f in files:
print('Verifying MD5 checksums...')
for f, checksum in zip(files, checksums):
downloadsum = hashlib.md5(open(f, 'r').read()).hexdigest()
downloadsum = hashlib.md5(open(f, 'rb').read()).hexdigest()
if downloadsum != checksum:
raise IOError("MD5 checksum for {} does not match. If this is your first "
"time receiving this message, please re-run the script. "