Skip to content

Commit d9c3699

Browse files
committed
this time for sure...
1 parent d91b9dd commit d9c3699

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

h11/_readers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ def __call__(self, buf: ReceiveBuffer) -> Union[Data, EndOfMessage, None]:
163163
data = buf.maybe_extract_at_most(len(self._bytes_to_discard))
164164
if data is None:
165165
return None
166-
if data != self._bytes_to_discard[:len(data)]:
166+
if data != self._bytes_to_discard[: len(data)]:
167167
raise LocalProtocolError(
168168
f"malformed chunk footer: {data!r} (expected {self._bytes_to_discard!r})"
169169
)
170-
self._bytes_to_discard = self._bytes_to_discard[len(data):]
170+
self._bytes_to_discard = self._bytes_to_discard[len(data) :]
171171
if self._bytes_to_discard:
172172
return None
173173
# else, fall through and read some more

h11/tests/test_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def _run_reader(*args: Any) -> List[Event]:
349349

350350

351351
def t_body_reader(
352-
thunk: Any, data: bytes, expected: list[Any], do_eof: bool = False
352+
thunk: Any, data: bytes, expected: Any, do_eof: bool = False
353353
) -> None:
354354
# Simple: consume whole thing
355355
print("Test 1")

0 commit comments

Comments
 (0)