Fix PEP8 assigning lambda expression

This commit is contained in:
Labrys of Knossos 2018-12-26 11:30:33 -05:00 committed by Lizband
commit 5ef4bdc1f4
2 changed files with 9 additions and 4 deletions

View file

@ -79,11 +79,13 @@ class DelugeClient(object):
return func
def _introspect(self):
def splitter(value):
return value.split(".")
self.modules = []
methods = self.remote_call("daemon.get_method_list").get()
methodmap = defaultdict(dict)
splitter = lambda v: v.split(".")
for module, method in imap(splitter, methods):
methodmap[module][method] = self._create_module_method(module, method)