diff --git a/data/get_nndc_data.py b/data/get_nndc_data.py index b888073fc..5df69f3ac 100755 --- a/data/get_nndc_data.py +++ b/data/get_nndc_data.py @@ -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. "