From d1a38d150e60ead1aa23dcde5f4c5be480aca44c Mon Sep 17 00:00:00 2001 From: xiaonaitong Date: Wed, 21 Sep 2011 10:26:49 +0800 Subject: [PATCH] don't need temp file --- autojump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojump b/autojump index 093e06b..5af1c15 100755 --- a/autojump +++ b/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