mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
fix a bug bug with VERIFY MD5 CHECKSUMS
Datas should be opened with option 'rb' otherwise it will cause a decode problem.
This commit is contained in:
parent
006b2558f0
commit
a8e2cd3ddd
1 changed files with 1 additions and 1 deletions
|
|
@ -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. "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue