diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2017-02-24 18:28:33 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2017-03-16 23:20:56 +0000 |
commit | eb38e0ffff42c5862105b9f4138dc615aff57af8 (patch) | |
tree | 110a4de6c6e9a6fd1052ff44b35abaa869cc5bb5 /deluge/ui/client.py | |
parent | 321677e05a7d24e3a0c76012b588671a03bdac54 (diff) | |
download | deluge-eb38e0ffff42c5862105b9f4138dc615aff57af8.tar.gz deluge-eb38e0ffff42c5862105b9f4138dc615aff57af8.tar.bz2 deluge-eb38e0ffff42c5862105b9f4138dc615aff57af8.zip |
[Py2to3] Large set of changes for Python 3 compat
- Preparation work for using six or future module for Py2/3 compat. The
code will be written in Python 3 with Python 2 fallbacks.
- Added some Py3 imports with Py2 fallbacks to make it easier to remove
Py2 code in future.
- Replace xrange with range (sort out import as top of files in future).
- Workaround Py2to3 basestring issue with inline if in instances. This means
every usage of basestring is more considered.
- Replace iteritems and itervalues for items and values. There might be a
performance penalty on Py2 so might need to revisit this change.
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r-- | deluge/ui/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py index 9483e6b00..452f767a3 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -397,7 +397,7 @@ class DaemonSSLProxy(DaemonProxy): # We need to tell the daemon what events we're interested in receiving if self.__factory.event_handlers: self.call('daemon.set_event_interest', - self.__factory.event_handlers.keys()) + list(self.__factory.event_handlers.keys())) self.call('core.get_auth_levels_mappings').addCallback( self.__on_auth_levels_mappings |