From e34fe17957621386706febab0389d9c00985a611 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 2 Oct 2018 21:14:59 +0300 Subject: Fix: shut up pylint3 --- ick2/apibase.py | 2 +- ick2/client.py | 2 -- pylint.conf | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ick2/apibase.py b/ick2/apibase.py index 6bf399d..c08f7cf 100644 --- a/ick2/apibase.py +++ b/ick2/apibase.py @@ -71,7 +71,7 @@ class APIbase: return ick2.not_found(e) if isinstance(body, dict): return ick2.OK(body) - elif isinstance(body, str): + if isinstance(body, str): return ick2.text_plain(body) raise Exception('this must not happen') return wrapper diff --git a/ick2/client.py b/ick2/client.py index 39e10f8..3e19e61 100644 --- a/ick2/client.py +++ b/ick2/client.py @@ -68,7 +68,6 @@ class HttpAPI: def post(self, url, headers=None, body=None): self._send_request(self._session.post, url, headers=headers, body=body) - return None def post_auth(self, url, headers=None, body=None, auth=None): assert auth is not None @@ -86,7 +85,6 @@ class HttpAPI: def put(self, url, headers=None, body=None): self._send_request(self._session.put, url, headers=headers, body=body) - return None def _send_request(self, func, url, headers=None, body=None, auth=None): if headers is None: diff --git a/pylint.conf b/pylint.conf index 79d8b83..9216a80 100644 --- a/pylint.conf +++ b/pylint.conf @@ -4,6 +4,8 @@ persistent=no [MESSAGES CONTROL] disable= arguments-differ, + assignment-from-no-return, + broad-except, inconsistent-return-statements, invalid-name, missing-docstring, -- cgit v1.2.1