Mercurial > hg
comparison mercurial/wireproto.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 | 631766d1f57a |
children | 6dbbb4fa1892 |
comparison
equal
deleted
inserted
replaced
25148:3b5cd6f13dcc | 25149:3f0744eeaeaf |
---|---|
365 elif keytype != 'plain': | 365 elif keytype != 'plain': |
366 raise KeyError('unknown getbundle option type %s' | 366 raise KeyError('unknown getbundle option type %s' |
367 % keytype) | 367 % keytype) |
368 opts[key] = value | 368 opts[key] = value |
369 f = self._callcompressable("getbundle", **opts) | 369 f = self._callcompressable("getbundle", **opts) |
370 if util.any((cap.startswith('HG2') for cap in bundlecaps)): | 370 if any((cap.startswith('HG2') for cap in bundlecaps)): |
371 return bundle2.getunbundler(self.ui, f) | 371 return bundle2.getunbundler(self.ui, f) |
372 else: | 372 else: |
373 return changegroupmod.cg1unpacker(f, 'UN') | 373 return changegroupmod.cg1unpacker(f, 'UN') |
374 | 374 |
375 def unbundle(self, cg, heads, source): | 375 def unbundle(self, cg, heads, source): |