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:
commit
a0e1d0652c
4 changed files with 4 additions and 4 deletions
|
@ -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 + '"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue