##// END OF EJS Templates
util: use the built-in any() and all() methods if they are available
Steve Losh -
r10487:7a6b5f85 stable
parent child Browse files
Show More
@@ -1343,6 +1343,9 b' def rundetached(args, condfn):'
1343 if prevhandler is not None:
1343 if prevhandler is not None:
1344 signal.signal(signal.SIGCHLD, prevhandler)
1344 signal.signal(signal.SIGCHLD, prevhandler)
1345
1345
1346 try:
1347 any, all = any, all
1348 except NameError:
1346 def any(iterable):
1349 def any(iterable):
1347 for i in iterable:
1350 for i in iterable:
1348 if i:
1351 if i:
General Comments 0
You need to be logged in to leave comments. Login now