fix deluge client for python3. Fixes #1626

This commit is contained in:
clinton-hall 2019-06-19 22:50:36 +12:00
commit f1dc672056

View file

@ -88,11 +88,12 @@ class DelugeClient(object):
def _introspect(self):
def splitter(value):
return value.split(b'.')
return value.split('.')
self.modules = []
methods = self.remote_call('daemon.get_method_list').get()
methods = (x.decode() for x in methods)
methodmap = defaultdict(dict)
for module, method in imap(splitter, methods):