diff 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
line wrap: on
line diff
--- a/mercurial/wireproto.py	Sat May 16 14:31:03 2015 -0400
+++ b/mercurial/wireproto.py	Sat May 16 14:30:07 2015 -0400
@@ -367,7 +367,7 @@
                                % keytype)
             opts[key] = value
         f = self._callcompressable("getbundle", **opts)
-        if util.any((cap.startswith('HG2') for cap in bundlecaps)):
+        if any((cap.startswith('HG2') for cap in bundlecaps)):
             return bundle2.getunbundler(self.ui, f)
         else:
             return changegroupmod.cg1unpacker(f, 'UN')