Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cachecontrol/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down