1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge remote-tracking branch 'upstream/master' into cmykjpgnorm

This commit is contained in:
Brendan Dahl 2011-11-09 09:50:57 -08:00
commit a0e1d0652c
4 changed files with 4 additions and 4 deletions

View file

@ -321,7 +321,7 @@ def verifyPDFs(manifestList):
for item in manifestList:
f = item['file']
if os.access(f, os.R_OK):
fileMd5 = hashlib.md5(open(f).read()).hexdigest()
fileMd5 = hashlib.md5(open(f, 'rb').read()).hexdigest()
if 'md5' not in item:
print 'ERROR: Missing md5 for file "' + f + '".',
print 'Hash for current file is "' + fileMd5 + '"'