Browse Source

Make sure key files end with a new line

Jonas Borgström 11 years ago
parent
commit
1db4ba52f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      attic/key.py

+ 1 - 0
attic/key.py

@@ -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):