From b2c73d534606ace1c191c17e730db86ade6c5966 Mon Sep 17 00:00:00 2001 From: Nathan Florea Date: Fri, 3 Jun 2016 03:50:05 -0700 Subject: [PATCH] Changed make_request lambda to more readable function. --- zulip/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zulip/__init__.py b/zulip/__init__.py index 1e64a46..a9ef21e 100644 --- a/zulip/__init__.py +++ b/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: