backup: one more py3k related fix
This commit is contained in:
parent
e52d8fb051
commit
2c3e112951
@ -1652,7 +1652,7 @@ class BackupRestore(object):
|
||||
"failed). Is the password correct?")
|
||||
if os.path.basename(filename) == HEADER_FILENAME:
|
||||
filename = os.path.join(self.tmpdir, filename)
|
||||
header_data = BackupHeader(open(filename, 'r').read())
|
||||
header_data = BackupHeader(open(filename, 'rb').read())
|
||||
os.unlink(filename)
|
||||
else:
|
||||
# if no header found, create one with guessed HMAC algo
|
||||
|
Loading…
Reference in New Issue
Block a user