diff mercurial/repoview.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 140c2d1e57e7
children f279191124f3
line wrap: on
line diff
--- a/mercurial/repoview.py	Sat May 16 14:31:03 2015 -0400
+++ b/mercurial/repoview.py	Sat May 16 14:30:07 2015 -0400
@@ -196,7 +196,7 @@
     Secret and hidden changeset should not pretend to be here."""
     assert not repo.changelog.filteredrevs
     # fast check to avoid revset call on huge repo
-    if util.any(repo._phasecache.phaseroots[1:]):
+    if any(repo._phasecache.phaseroots[1:]):
         getphase = repo._phasecache.phase
         maymutable = filterrevs(repo, 'base')
         return frozenset(r for r in maymutable if getphase(repo, r))