From 83ceb41befe3be3e20cbe6e91f8767316b8532ba Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 6 Nov 2015 13:03:41 +0100 Subject: Fix pylint violations Signed-off-by: Christian Heimes --- custodia/client.py | 1 + custodia/httpd/server.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/custodia/client.py b/custodia/client.py index d4b9c1a..4a17927 100644 --- a/custodia/client.py +++ b/custodia/client.py @@ -14,6 +14,7 @@ from requests.packages.urllib3.connectionpool import HTTPConnectionPool class HTTPUnixConnection(HTTPConnection): def __init__(self, host, timeout=60, **kwargs): + # pylint: disable=bad-super-call super(HTTPConnection, self).__init__('localhost') self.unix_socket = host self.timeout = timeout diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py index 2608f3c..46dfe92 100644 --- a/custodia/httpd/server.py +++ b/custodia/httpd/server.py @@ -161,7 +161,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler): SELINUX_CONTEXT_LEN) context = creds.decode('utf-8') except Exception: - log.debug("Couldn't retrieve SELinux Context", exc_info=True) + logger.debug("Couldn't retrieve SELinux Context", exc_info=True) context = None self._creds = {'pid': pid, 'uid': uid, 'gid': gid, 'context': context} -- cgit