mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
don't need temp file
This commit is contained in:
2
autojump
2
autojump
@@ -88,7 +88,7 @@ def save(path_dict, dic_file):
|
||||
temp.close()
|
||||
#cf. http://thunk.org/tytso/blog/2009/03/15/dont-fear-the-fsync/
|
||||
import shutil
|
||||
shutil.copy(temp.name, dic_file)
|
||||
shutil.move(temp.name, dic_file)
|
||||
try: #backup file
|
||||
import time
|
||||
if (not os.path.exists(dic_file+".bak") or
|
||||
|
||||
Reference in New Issue
Block a user