We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 234ec25 + b190b1f commit 085710fCopy full SHA for 085710f
test/test.py
@@ -321,7 +321,7 @@ def verifyPDFs(manifestList):
321
for item in manifestList:
322
f = item['file']
323
if os.access(f, os.R_OK):
324
- fileMd5 = hashlib.md5(open(f).read()).hexdigest()
+ fileMd5 = hashlib.md5(open(f, 'rb').read()).hexdigest()
325
if 'md5' not in item:
326
print 'ERROR: Missing md5 for file "' + f + '".',
327
print 'Hash for current file is "' + fileMd5 + '"'
0 commit comments