remove needless indentation

This commit is contained in:
Antoine Beaupré 2015-10-01 14:23:43 -04:00
parent 6a72252b69
commit 180dfcb18f
1 changed files with 2 additions and 5 deletions

View File

@ -93,11 +93,8 @@ class AtticRepositoryConverter(Repository):
print("converting keyfile %s" % keyfile)
with open(keyfile, 'r') as f:
data = f.read()
data = data.replace(AtticKeyfileKey.FILE_ID,
KeyfileKey.FILE_ID,
1)
keyfile = os.path.join(get_keys_dir(),
os.path.basename(keyfile))
data = data.replace(AtticKeyfileKey.FILE_ID, KeyfileKey.FILE_ID, 1)
keyfile = os.path.join(get_keys_dir(), os.path.basename(keyfile))
print("writing borg keyfile to %s" % keyfile)
if not dryrun:
with open(keyfile, 'w') as f: