comparison mercurial/exchange.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 e632a2429982
children ee665d3bf6dd
comparison
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
1179 when the API of bundle is refined. 1179 when the API of bundle is refined.
1180 """ 1180 """
1181 # bundle10 case 1181 # bundle10 case
1182 usebundle2 = False 1182 usebundle2 = False
1183 if bundlecaps is not None: 1183 if bundlecaps is not None:
1184 usebundle2 = util.any((cap.startswith('HG2') for cap in bundlecaps)) 1184 usebundle2 = any((cap.startswith('HG2') for cap in bundlecaps))
1185 if not usebundle2: 1185 if not usebundle2:
1186 if bundlecaps and not kwargs.get('cg', True): 1186 if bundlecaps and not kwargs.get('cg', True):
1187 raise ValueError(_('request for bundle10 must include changegroup')) 1187 raise ValueError(_('request for bundle10 must include changegroup'))
1188 1188
1189 if kwargs: 1189 if kwargs: