Skip to content

Commit dd99650

Browse files
committed
Fix typos discovered by codespell
1 parent bcdf419 commit dd99650

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/h2/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ def send_headers(self,
780780
on the stream given in ``priority_depends_on`` for priority
781781
purposes. See :meth:`prioritize
782782
<h2.connection.H2Connection.prioritize>` for more about how this
783-
field workds. Defaults to ``None``, which means that no priority
783+
field works. Defaults to ``None``, which means that no priority
784784
information will be sent.
785785
:type priority_depends_on: ``bool`` or ``None``
786786

src/h2/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ class SettingsAcknowledged(Event):
510510
"""
511511
The SettingsAcknowledged event is fired whenever a settings ACK is received
512512
from the remote peer. The event carries on it the settings that were
513-
acknowedged, in the same format as
513+
acknowledged, in the same format as
514514
:class:`h2.events.RemoteSettingsChanged`.
515515
"""
516516

src/h2/frame_buffer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .exceptions import FrameDataMissingError, FrameTooLargeError, ProtocolError
1414

1515
# To avoid a DOS attack based on sending loads of continuation frames, we limit
16-
# the maximum number we're perpared to receive. In this case, we'll set the
16+
# the maximum number we're prepared to receive. In this case, we'll set the
1717
# limit to 64, which means the largest encoded header block we can receive by
1818
# default is 262144 bytes long, and the largest possible *at all* is 1073741760
1919
# bytes long.
@@ -25,7 +25,7 @@
2525

2626
class FrameBuffer:
2727
"""
28-
A buffer data structure for HTTP/2 data that allows iteraton in terms of
28+
A buffer data structure for HTTP/2 data that allows iteration in terms of
2929
H2 frames.
3030
"""
3131

@@ -94,7 +94,7 @@ def _update_header_buffer(self, f: Frame | None) -> Frame | None:
9494

9595
# If this is the end of the header block, then we want to build a
9696
# mutant HEADERS frame that's massive. Use the original one we got,
97-
# then set END_HEADERS and set its data appopriately. If it's not
97+
# then set END_HEADERS and set its data appropriately. If it's not
9898
# the end of the block, lose the current frame: we can't yield it.
9999
if "END_HEADERS" in f.flags:
100100
f = self._headers_buffer[0]

tests/test_flow_control_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def test_must_acknowledge_for_stream(self, frame_factory, stream_id) -> None:
730730
frame_factory.refresh_encoder()
731731

732732
# Create a connection in a state that might actually accept
733-
# data acknolwedgement.
733+
# data acknowledgement.
734734
c = self._setup_connection_and_send_headers(frame_factory)
735735
data_frame = frame_factory.build_data_frame(
736736
b"some data", flags=["END_STREAM"],
@@ -755,7 +755,7 @@ def test_cannot_acknowledge_less_than_zero(self, frame_factory, size) -> None:
755755
frame_factory.refresh_encoder()
756756

757757
# Create a connection in a state that might actually accept
758-
# data acknolwedgement.
758+
# data acknowledgement.
759759
c = self._setup_connection_and_send_headers(frame_factory)
760760
data_frame = frame_factory.build_data_frame(
761761
b"some data", flags=["END_STREAM"],

0 commit comments

Comments
 (0)