diff --git a/cachecontrol/controller.py b/cachecontrol/controller.py index c7dd8a1..b993570 100644 --- a/cachecontrol/controller.py +++ b/cachecontrol/controller.py @@ -128,12 +128,12 @@ def parse_cache_control(self, headers: Mapping[str, str]) -> dict[str, int | Non except IndexError: if required: logger.debug( - "Missing value for cache-control " "directive: %s", + "Missing value for cache-control directive: %s", directive, ) except ValueError: logger.debug( - "Invalid value for cache-control directive " "%s, must be %s", + "Invalid value for cache-control directive %s, must be %s", directive, typ.__name__, ) diff --git a/tests/test_adapter.py b/tests/test_adapter.py index 7b299a2..8a4f38e 100644 --- a/tests/test_adapter.py +++ b/tests/test_adapter.py @@ -75,7 +75,7 @@ def test_do_not_leak_response(self, url, sess): resp.raise_for_status() r1_weak = weakref.ref(resp.raw) - # This is a mis-use of requests, becase we should either consume + # This is a mis-use of requests, because we should either consume # the body, or call .close(). # But requests without cachecontrol handle this anyway, because # urllib3.response.HTTPResponse has a __del__ finalizer on it that closes it