mirror of https://github.com/zulip/zulip.git
Changed make_request lambda to more readable function.
This commit is contained in:
parent
04c71fadc6
commit
85c0da67a4
|
@ -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 New Issue