mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Fix PEP8 assigning lambda expression
This commit is contained in:
parent
018ded07d6
commit
5ef4bdc1f4
2 changed files with 9 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue