Make sure key files end with a new line

This commit is contained in:
Jonas Borgström 2014-03-28 22:56:40 +01:00
parent 8080f183d6
commit 1db4ba52f9
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ class KeyfileKey(AESKeyBase):
with open(path, 'w') as fd:
fd.write('%s %s\n' % (self.FILE_ID, hexlify(self.repository_id).decode('ascii')))
fd.write('\n'.join(textwrap.wrap(b2a_base64(data).decode('ascii'))))
fd.write('\n')
self.path = path
def change_passphrase(self):