From 5d949f4e8a23c937653917f2e6bde81f2402c29e Mon Sep 17 00:00:00 2001 From: jez Date: Wed, 1 Jun 2011 19:30:29 +0000 Subject: [PATCH] Use pickle protocol 2. This ensures that autojump works when the default python interpreter is changed, e.g. by virtualenv. --- autojump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojump b/autojump index 2118056..7a2702d 100755 --- a/autojump +++ b/autojump @@ -53,7 +53,7 @@ def save(path_dict, dic_file): # Otherwise, fail quietly if (not os.path.exists(dic_file)) or os.getuid() == os.stat(dic_file)[4]: temp = NamedTemporaryFile(dir=CONFIG_DIR, delete=False) - pickle.dump(path_dict, temp, -1) + pickle.dump(path_dict, temp, 2) temp.flush() os.fsync(temp) temp.close()