Changed make_request lambda to more readable function.
This commit is contained in:
parent
25d7e844a2
commit
b2c73d5346
|
@ -349,7 +349,10 @@ class Client(object):
|
|||
if url is None:
|
||||
url = name
|
||||
if make_request is None:
|
||||
make_request = lambda request=None: {} if request is None else request
|
||||
def make_request(request=None):
|
||||
if request is None:
|
||||
request = {}
|
||||
return request
|
||||
def call(self, *args, **kwargs):
|
||||
request = make_request(*args, **kwargs)
|
||||
if computed_url is not None:
|
||||
|
|
Loading…
Reference in a new issue