mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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()
|
||||
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…
Add table
Reference in a new issue