issue #477: Py2.4 lacks all().

issue510
David Wilson 6 years ago
parent be8562ce09
commit 58d8813c03

@ -41,6 +41,15 @@ import mitogen.select
from mitogen.core import b from mitogen.core import b
from mitogen.core import LOG from mitogen.core import LOG
try:
all
except NameError:
def all(it):
for elem in it:
if not elem:
return False
return True
DEFAULT_POOL_SIZE = 16 DEFAULT_POOL_SIZE = 16
_pool = None _pool = None

Loading…
Cancel
Save