1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

remove old compatibility code since we don't support <2.6 anymore anyways

This commit is contained in:
Joël Schaerer 2010-10-25 15:18:04 +02:00
parent 06f4cba19d
commit 929ba399b5

View File

@ -75,16 +75,6 @@ def clean_dict(sorted_dirs,path_dict):
return True
else: return False
# catch all unavailable (python < 2.5)
try:
all
except:
def all(iterable):
for element in iterable:
if not element:
return False
return True
def match(path,pattern,ignore_case=False,only_end=False):
try:
if os.path.realpath(os.curdir)==path : return False