diff mercurial/hgweb/webcommands.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 99d01d288c37
children 235f6490550c
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat May 16 14:31:03 2015 -0400
+++ b/mercurial/hgweb/webcommands.py	Sat May 16 14:30:07 2015 -0400
@@ -232,7 +232,7 @@
             # no revset syntax used
             return MODE_KEYWORD, query
 
-        if util.any((token, (value or '')[:3]) == ('string', 're:')
+        if any((token, (value or '')[:3]) == ('string', 're:')
                     for token, value, pos in revset.tokenize(revdef)):
             return MODE_KEYWORD, query