1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-27 01:39:45 +00:00

a2b_base64 now also accepts ascii-only str objects

This commit is contained in:
Thomas Waldmann 2015-12-15 00:26:06 +01:00
parent fc52101d46
commit fc326df600

View file

@ -263,7 +263,7 @@ def load(self, target, passphrase):
raise NotImplementedError
def _load(self, key_data, passphrase):
cdata = a2b_base64(key_data.encode('ascii')) # .encode needed for Python 3.[0-2]
cdata = a2b_base64(key_data)
data = self.decrypt_key_file(cdata, passphrase)
if data:
key = msgpack.unpackb(data)