Bitmessage/PyBitmessage — pull request #715 by yurivict (2014-09-15 07:01:08+00:00)
Title: Make writing keys.dat safer by creating a backup file

Just overwriting the file may cause its loss in case the overall disk write operation fails in the middle.
Created a .bak file for the duration of the write operation to prevent such possible file loss.