From b190b1fa53426581ac6db9711b3fe24ddc42be63 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Mon, 7 Nov 2011 12:44:06 -0800 Subject: [PATCH] Fix md5 for windows --- test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index bce5ae8f3..65def5d8e 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 + '"'