mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
use list comprehension over lambda
This commit is contained in:
parent
e856e65db5
commit
d011c61971
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ class WebApi(JSONComponent):
|
||||||
|
|
||||||
main_deferred = Deferred()
|
main_deferred = Deferred()
|
||||||
def run_check():
|
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())
|
main_deferred.callback(hosts.values())
|
||||||
|
|
||||||
def on_connect(connected, c, host_id):
|
def on_connect(connected, c, host_id):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue