From 7e098b24c58f27740c36f79da776340ecd722d6d Mon Sep 17 00:00:00 2001 From: Jesse Jaggars Date: Mon, 7 May 2012 12:55:19 -0500 Subject: read files in binary mode when calculating checksums, this ensures equality across platforms --- sos/policies/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 32ecb0a0..57803264 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -217,7 +217,7 @@ No changes will be made to your system. if not final_filename: return False - archive_fp = open(final_filename, 'r') + archive_fp = open(final_filename, 'rb') digest = hashlib.new(get_hash_name()) digest.update(archive_fp.read()) archive_fp.close() -- cgit