aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/policies/__init__.py2
1 files changed, 1 insertions, 1 deletions
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()