use list comprehension over lambda

This commit is contained in:
Damien Churchill 2009-04-29 20:15:56 +00:00
parent e856e65db5
commit d011c61971

View File

@ -488,7 +488,7 @@ class WebApi(JSONComponent):
main_deferred = Deferred()
def run_check():
if all(map(lambda x: x[HOSTS_STATUS] is not None, hosts.values())):
if all([h[HOSTS_STATUS] is not None for h in hosts.values()]):
main_deferred.callback(hosts.values())
def on_connect(connected, c, host_id):