Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.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 | f542a2c89b60 |
children | 08d1ef09ed37 |
line wrap: on
line diff
--- a/mercurial/revset.py Sat May 16 14:31:03 2015 -0400 +++ b/mercurial/revset.py Sat May 16 14:30:07 2015 -0400 @@ -1121,7 +1121,7 @@ def matches(r): c = repo[r] - return util.any(kw in encoding.lower(t) for t in c.files() + [c.user(), + return any(kw in encoding.lower(t) for t in c.files() + [c.user(), c.description()]) return subset.filter(matches) @@ -1779,7 +1779,7 @@ return s.added or s.modified or s.removed if s.added: - return util.any(submatches(c.substate.keys())) + return any(submatches(c.substate.keys())) if s.modified: subs = set(c.p1().substate.keys()) @@ -1790,7 +1790,7 @@ return True if s.removed: - return util.any(submatches(c.p1().substate.keys())) + return any(submatches(c.p1().substate.keys())) return False