From a49e6417191b61b97b602791241e7cfbff09f2ef Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 1 Nov 2015 08:09:54 -0800 Subject: [PATCH] Apply Python 3 futurize transform lib2to3.fixes.fix_funcattrs. --- zulip/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/__init__.py b/zulip/__init__.py index d8d8a9e..3b919aa 100644 --- a/zulip/__init__.py +++ b/zulip/__init__.py @@ -351,7 +351,7 @@ class Client(object): else: req_url = url return self.do_api_query(request, API_VERSTRING + req_url, method=method, **query_kwargs) - call.func_name = name + call.__name__ = name setattr(cls, name, call) def call_on_each_event(self, callback, event_types=None, narrow=[]):