From 58b608c4d04dd00556fa070aea796d691eb2cf7a Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 13 Apr 2010 00:41:56 +0200 Subject: [PATCH] Disable false errors reported by Pylint. --- radicale/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicale/__init__.py b/radicale/__init__.py index b1125eb..01fb0e8 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -54,7 +54,10 @@ def _check(request, function): authorization = request.headers.get("Authorization", None) if authorization: challenge = authorization.lstrip("Basic").strip().encode("ascii") + # ``_check`` decorator can access ``request`` protected functions + # pylint: disable-msg=W0212 plain = request._decode(base64.b64decode(challenge)) + # pylint: enable-msg=W0212 user, password = plain.split(":") else: user = password = None @@ -71,10 +74,13 @@ def _check(request, function): class HTTPServer(server.HTTPServer): """HTTP server.""" + # Maybe a Pylint bug, ``__init__`` calls ``server.HTTPServer.__init__`` + # pylint: disable-msg=W0231 def __init__(self, address, handler): """Create server.""" server.HTTPServer.__init__(self, address, handler) self.acl = acl.load() + # pylint: enable-msg=W0231 class HTTPSServer(HTTPServer):