add a any() to wait_for for python 2.4 compatibility (#25876)

pull/25945/head
loqutus 9 years ago committed by Adrian Likins
parent e998b7e40f
commit 7fbd7fc4f8

@ -177,6 +177,13 @@ try:
except ImportError:
pass
#fix for python <2.4 compatibility
if sys.version_info[0] < 3 and version_info[1] < 5:
def any(iterable):
for element in iterable:
if element:
return True
return False
class TCPConnectionInfo(object):
"""

Loading…
Cancel
Save