From c25668f4f71ff3992c1ac5bd7e8ff03ab5542fe9 Mon Sep 17 00:00:00 2001 From: Joel Schaerer Date: Sun, 24 Oct 2010 11:36:24 +0200 Subject: [PATCH] fix for backwards compatibility with 2.x pickles --- autojump | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autojump b/autojump index 2cdd57e..55abdaa 100755 --- a/autojump +++ b/autojump @@ -112,7 +112,8 @@ def find_matches(dirs,patterns,result_list,ignore_case,max_matches): def open_dic(dic_file,error_recovery=False): try: aj_file=open(dic_file, 'rb') - path_dict=pickle.load(aj_file) + #encoding is only specified for python2.x compatibility + path_dict=pickle.load(aj_file,encoding="utf-8") aj_file.close() return path_dict except (IOError,EOFError,pickle.UnpicklingError):