Changed make_request lambda to more readable function.

This commit is contained in:
Nathan Florea 2016-06-03 03:50:05 -07:00 committed by Tim Abbott
parent 25d7e844a2
commit b2c73d5346

View file

@ -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: