Skip to content

Commit b190b1f

Browse files
committed
Fix md5 for windows
1 parent 234ec25 commit b190b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def verifyPDFs(manifestList):
321321
for item in manifestList:
322322
f = item['file']
323323
if os.access(f, os.R_OK):
324-
fileMd5 = hashlib.md5(open(f).read()).hexdigest()
324+
fileMd5 = hashlib.md5(open(f, 'rb').read()).hexdigest()
325325
if 'md5' not in item:
326326
print 'ERROR: Missing md5 for file "' + f + '".',
327327
print 'Hash for current file is "' + fileMd5 + '"'

0 commit comments

Comments
 (0)