mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
use list comprehension over lambda
This commit is contained in:
parent
e856e65db5
commit
d011c61971
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user