summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ick2/apibase.py2
-rw-r--r--ick2/client.py2
-rw-r--r--pylint.conf2
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,