mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
2.x compatibility
This commit is contained in:
parent
19927146dd
commit
06f4cba19d
2
autojump
2
autojump
@ -112,7 +112,7 @@ def find_matches(dirs,patterns,result_list,ignore_case,max_matches):
|
|||||||
def open_dic(dic_file,error_recovery=False):
|
def open_dic(dic_file,error_recovery=False):
|
||||||
try:
|
try:
|
||||||
aj_file=open(dic_file, 'rb')
|
aj_file=open(dic_file, 'rb')
|
||||||
if version_info.major>2:
|
if version_info[0]>2:
|
||||||
#encoding is only specified for python2.x compatibility
|
#encoding is only specified for python2.x compatibility
|
||||||
path_dict=pickle.load(aj_file,encoding="utf-8")
|
path_dict=pickle.load(aj_file,encoding="utf-8")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user