diff --git a/github/Requester.py b/github/Requester.py index eb6a0e49..81de4c3c 100644 --- a/github/Requester.py +++ b/github/Requester.py @@ -215,6 +215,4 @@ class Requester: requestHeaders["Authorization"] = "Basic (login and password removed)" elif requestHeaders["Authorization"].startswith("token"): requestHeaders["Authorization"] = "token (oauth token removed)" - else: # pragma no cover - requestHeaders["Authorization"] = "Unknown authorization removed" logger.debug("%s %s://%s%s %s %s ==> %i %s %s", str(verb), self.__scheme, self.__hostname, str(url), str(requestHeaders), str(input), status, str(responseHeaders), str(output)) diff --git a/github/tests/Framework.py b/github/tests/Framework.py index 254900ce..931088e6 100644 --- a/github/tests/Framework.py +++ b/github/tests/Framework.py @@ -63,8 +63,6 @@ def fixAuthorizationHeader(headers): headers["Authorization"] = "token private_token_removed" elif headers["Authorization"].startswith("Basic "): headers["Authorization"] = "Basic login_and_password_removed" - else: # pragma no cover - assert False class RecordingConnection: # pragma no cover