From: Brendan Dahl Date: Mon, 7 Nov 2011 20:44:06 +0000 (-0800) Subject: Fix md5 for windows X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b190b1fa53426581ac6db9711b3fe24ddc42be63;p=pdf.js.git Fix md5 for windows --- diff --git a/test/test.py b/test/test.py index bce5ae8..65def5d 100644 --- a/test/test.py +++ b/test/test.py @@ -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 + '"'