From d011c61971b4d105e79e295377efc3a28502714f Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 29 Apr 2009 20:15:56 +0000 Subject: [PATCH] use list comprehension over lambda --- deluge/ui/web/json_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 9f8ad78f8..31ef8ec3f 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -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):