Skip to content

Commit 08ec354

Browse files
committed
Improved some grammer and typo
1 parent 793600d commit 08ec354

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

h2/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def recv_on_closed_stream(self, previous_state):
330330
Called when an unexpected frame is received on an already-closed
331331
stream.
332332
333-
An endpoint that receives an unexepcted frame should treat it as
333+
An endpoint that receives an unexpected frame should treat it as
334334
a stream error or connection error with type STREAM_CLOSED, depending
335335
on the specific frame. The error handling is done at a higher level:
336336
this just raises the appropriate error.
@@ -351,7 +351,7 @@ def send_on_closed_stream(self, previous_state):
351351

352352
def recv_push_on_closed_stream(self, previous_state):
353353
"""
354-
Called when a PUSH_PROMISE frame is received on an already-closed
354+
Called when a PUSH_PROMISE frame is received on a full stop
355355
stream.
356356
357357
If the stream was closed by us sending a RST_STREAM frame, then we

test/test_closed_streams.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def test_frames_after_recv_end_will_error(self,
134134
frame,
135135
clear_streams):
136136
"""
137-
A stream that is closed by receive END_STREAM will raise
138-
ProtocolError when received unexpected frame.
137+
A stream that is closed by receiving END_STREAM raises
138+
ProtocolError when it receives an unexpected frame.
139139
"""
140140
c = h2.connection.H2Connection(client_side=False)
141141
c.receive_data(frame_factory.preamble())
@@ -184,8 +184,8 @@ def test_frames_after_send_end_will_error(self,
184184
frame,
185185
clear_streams):
186186
"""
187-
A stream that is closed by sending END_STREAM will raise
188-
ProtocolError when received unexpected frame.
187+
A stream that is closed by sending END_STREAM raises
188+
ProtocolError when it receives an unexpected frame.
189189
"""
190190
c = h2.connection.H2Connection(client_side=True)
191191
c.initiate_connection()

0 commit comments

Comments
 (0)