diff --git a/api/zulip/__init__.py b/api/zulip/__init__.py index 1e64a46e01..a9ef21ee64 100644 --- a/api/zulip/__init__.py +++ b/api/zulip/__init__.py @@ -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: