Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
25148:3b5cd6f13dcc | 25149:3f0744eeaeaf |
---|---|
230 | 230 |
231 if revset.depth(tree) <= 2: | 231 if revset.depth(tree) <= 2: |
232 # no revset syntax used | 232 # no revset syntax used |
233 return MODE_KEYWORD, query | 233 return MODE_KEYWORD, query |
234 | 234 |
235 if util.any((token, (value or '')[:3]) == ('string', 're:') | 235 if any((token, (value or '')[:3]) == ('string', 're:') |
236 for token, value, pos in revset.tokenize(revdef)): | 236 for token, value, pos in revset.tokenize(revdef)): |
237 return MODE_KEYWORD, query | 237 return MODE_KEYWORD, query |
238 | 238 |
239 funcsused = revset.funcsused(tree) | 239 funcsused = revset.funcsused(tree) |
240 if not funcsused.issubset(revset.safesymbols): | 240 if not funcsused.issubset(revset.safesymbols): |