mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
commit
085710f9db
1 changed files with 1 additions and 1 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