comparison mercurial/archival.py @ 25149:3f0744eeaeaf

cleanup: use __builtins__.any instead of util.any any() is available in all Python versions we support now.
author Augie Fackler <augie@google.com>
date Sat, 16 May 2015 14:30:07 -0400
parents 5115d03440f4
children 3ec8351fa6ed
comparison
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
52 'zip': ['.zip'], 52 'zip': ['.zip'],
53 } 53 }
54 54
55 def guesskind(dest): 55 def guesskind(dest):
56 for kind, extensions in exts.iteritems(): 56 for kind, extensions in exts.iteritems():
57 if util.any(dest.endswith(ext) for ext in extensions): 57 if any(dest.endswith(ext) for ext in extensions):
58 return kind 58 return kind
59 return None 59 return None
60 60
61 def _rootctx(repo): 61 def _rootctx(repo):
62 # repo[0] may be hidden 62 # repo[0] may be hidden