Author: damoxc

Revision: 5214

Log:
        use list comprehension over lambda

Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py     2009-04-29 02:41:10 UTC (rev 5213)
+++ trunk/deluge/ui/web/json_api.py     2009-04-29 20:15:56 UTC (rev 5214)
@@ -488,7 +488,7 @@
         
         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):



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to