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 04c71fadc6
commit 85c0da67a4
1 changed files with 4 additions and 1 deletions

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: