Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
fix decrypt blob on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed May 16, 2017
1 parent 99b0c38 commit 2f07759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cipher/encryptingstorage/__init__.py
Expand Up @@ -268,7 +268,7 @@ def decrypt_file(filename, blob_dir):
os.makedirs(new_tmp_dir, 0o700)

with open(filename, 'rb') as fsrc:
header = str(fsrc.read(2))
header = fsrc.read(2)
if header != b'.e':
# File isn't encrypted
fsrc.seek(0)
Expand Down

0 comments on commit 2f07759

Please sign in to comment.