From f00b94f18e1d82d1488cbcee6053f03423bc2f49 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 22 Jul 2017 03:02:05 +0000 Subject: Convert to click for CLI options --- src/mailman/rest/docs/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mailman/rest/docs/__init__.py') diff --git a/src/mailman/rest/docs/__init__.py b/src/mailman/rest/docs/__init__.py index 81c6d11b4..350a6b83e 100644 --- a/src/mailman/rest/docs/__init__.py +++ b/src/mailman/rest/docs/__init__.py @@ -28,7 +28,7 @@ from public import public # New in Python 3.5. try: from http import HTTPStatus -except ImportError: # pragma: no cover +except ImportError: # pragma: nocover class HTTPStatus: FORBIDDEN = 403 NOT_FOUND = 404 @@ -43,14 +43,14 @@ class TestableHandler(BaseHTTPRequestHandler): log_error = log_request - def do_GET(self): # pragma: no cover + def do_GET(self): # pragma: nocover if self.path == '/welcome_2.txt': if self.headers['Authorization'] != 'Basic YW5uZTppcyBzcGVjaWFs': self.send_error(HTTPStatus.FORBIDDEN) return response = TEXTS.get(self.path) if response is None: - self.send_error(HTTPStatus.NOT_FOUND) # pragma: no cover + self.send_error(HTTPStatus.NOT_FOUND) # pragma: nocover return self.send_response(HTTPStatus.OK) self.send_header('Content-Type', 'UTF-8') -- cgit v1.2.3-70-g09d2