# HG changeset patch # User Augie Fackler # Date 2015-05-16 18:37:24 # Node ID ac2e66f481c99e0ee0b8c4eedb8e64925269b367 # Parent 6eb4bdad198f546de7a5b06602119a27b5bc3203 util: drop any() and all() polyfills diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1720,21 +1720,6 @@ def rundetached(args, condfn): if prevhandler is not None: signal.signal(signal.SIGCHLD, prevhandler) -try: - any, all = any, all -except NameError: - def any(iterable): - for i in iterable: - if i: - return True - return False - - def all(iterable): - for i in iterable: - if not i: - return False - return True - def interpolate(prefix, mapping, s, fn=None, escape_prefix=False): """Return the result of interpolating items in the mapping into string s.