code simplify
This commit is contained in:
parent
09e2e74d34
commit
1953fb9e97
1 changed files with 2 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ class Weboob(object):
|
|||
@param function backend's method name, or callable object
|
||||
@return an iterator of results
|
||||
"""
|
||||
backends = [b for b in self.iter_backends()]
|
||||
backends = list(self.iter_backends())
|
||||
return BackendsCall(backends, function, *args, **kwargs)
|
||||
|
||||
def do_caps(self, caps, function, *args, **kwargs):
|
||||
|
|
@ -140,7 +140,7 @@ class Weboob(object):
|
|||
@param function backend's method name, or callable object
|
||||
@return an iterator of results
|
||||
"""
|
||||
backends = [b for b in self.iter_backends(caps)]
|
||||
backends = list(self.iter_backends(caps))
|
||||
return BackendsCall(backends, function, *args, **kwargs)
|
||||
|
||||
def do_backends(self, backends, function, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue