summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-03-16 21:39:57 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2017-03-16 23:20:56 +0000
commitaf7e83bc76dc2db837ebcabba612dbccc9aac9e7 (patch)
tree025fbb6f57ca6f3513d218e59c78095abec729c0 /deluge/ui/client.py
parent4a274466acf55a8b5617b630ab4c7253827025bf (diff)
downloaddeluge-af7e83bc76dc2db837ebcabba612dbccc9aac9e7.tar.gz
deluge-af7e83bc76dc2db837ebcabba612dbccc9aac9e7.tar.bz2
deluge-af7e83bc76dc2db837ebcabba612dbccc9aac9e7.zip
Replace/remove usage of dict.keys()
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 452f767a3..a494de576 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -396,12 +396,9 @@ class DaemonSSLProxy(DaemonProxy):
self.authentication_level = result
# We need to tell the daemon what events we're interested in receiving
if self.__factory.event_handlers:
- self.call('daemon.set_event_interest',
- list(self.__factory.event_handlers.keys()))
-
+ self.call('daemon.set_event_interest', list(self.__factory.event_handlers))
self.call('core.get_auth_levels_mappings').addCallback(
- self.__on_auth_levels_mappings
- )
+ self.__on_auth_levels_mappings)
login_deferred.callback(result)