##// END OF EJS Templates
util: drop any() and all() polyfills
Augie Fackler -
r25152:ac2e66f4 default
parent child Browse files
Show More
@@ -1720,21 +1720,6 b' def rundetached(args, condfn):'
1720 1720 if prevhandler is not None:
1721 1721 signal.signal(signal.SIGCHLD, prevhandler)
1722 1722
1723 try:
1724 any, all = any, all
1725 except NameError:
1726 def any(iterable):
1727 for i in iterable:
1728 if i:
1729 return True
1730 return False
1731
1732 def all(iterable):
1733 for i in iterable:
1734 if not i:
1735 return False
1736 return True
1737
1738 1723 def interpolate(prefix, mapping, s, fn=None, escape_prefix=False):
1739 1724 """Return the result of interpolating items in the mapping into string s.
1740 1725
General Comments 0
You need to be logged in to leave comments. Login now