Skip to content

Commit 54110b8

Browse files
committed
fix spelling error from codespell
(This was preventing `make format` from completing, so also run that.)
1 parent 184ed03 commit 54110b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cachecontrol/controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ def parse_cache_control(self, headers: Mapping[str, str]) -> dict[str, int | Non
128128
except IndexError:
129129
if required:
130130
logger.debug(
131-
"Missing value for cache-control " "directive: %s",
131+
"Missing value for cache-control directive: %s",
132132
directive,
133133
)
134134
except ValueError:
135135
logger.debug(
136-
"Invalid value for cache-control directive " "%s, must be %s",
136+
"Invalid value for cache-control directive %s, must be %s",
137137
directive,
138138
typ.__name__,
139139
)

tests/test_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_do_not_leak_response(self, url, sess):
7575
resp.raise_for_status()
7676
r1_weak = weakref.ref(resp.raw)
7777

78-
# This is a mis-use of requests, becase we should either consume
78+
# This is a mis-use of requests, because we should either consume
7979
# the body, or call .close().
8080
# But requests without cachecontrol handle this anyway, because
8181
# urllib3.response.HTTPResponse has a __del__ finalizer on it that closes it

0 commit comments

Comments
 (0)