@@ -26,7 +26,7 @@ class FrameTooLargeError(ProtocolError):
2626 """
2727 The frame that we tried to send or that we received was too large.
2828 """
29- #: This error code that corresponds to this kind of Protocol Error.
29+ #: The error code corresponds to this kind of Protocol Error.
3030 error_code = h2 .errors .ErrorCodes .FRAME_SIZE_ERROR
3131
3232
@@ -36,7 +36,7 @@ class FrameDataMissingError(ProtocolError):
3636
3737 .. versionadded:: 2.0.0
3838 """
39- #: The error code that corresponds to this kind of Protocol Error
39+ #: The error code corresponds to this kind of Protocol Error.
4040 error_code = h2 .errors .ErrorCodes .FRAME_SIZE_ERROR
4141
4242
@@ -52,8 +52,7 @@ class FlowControlError(ProtocolError):
5252 """
5353 An attempted action violates flow control constraints.
5454 """
55- #: The error code that corresponds to this kind of
56- #: :class:`ProtocolError <h2.exceptions.ProtocolError>`
55+ #: The error code corresponds to this kind of Protocol Error.
5756 error_code = h2 .errors .ErrorCodes .FLOW_CONTROL_ERROR
5857
5958
@@ -94,7 +93,7 @@ class NoSuchStreamError(ProtocolError):
9493 <h2.exceptions.ProtocolError>`
9594 """
9695 def __init__ (self , stream_id ):
97- #: The stream ID that corresponds to the non-existent stream.
96+ #: The stream ID corresponds to the non-existent stream.
9897 self .stream_id = stream_id
9998
10099
@@ -106,7 +105,7 @@ class StreamClosedError(NoSuchStreamError):
106105 stream has been removed.
107106 """
108107 def __init__ (self , stream_id ):
109- #: The stream ID that corresponds to the nonexistent stream.
108+ #: The stream ID corresponds to the nonexistent stream.
110109 self .stream_id = stream_id
111110
112111 #: The relevant HTTP/2 error code.
@@ -145,13 +144,15 @@ def __str__(self):
145144 )
146145
147146
148- class UnsupportedFrameError (ProtocolError , KeyError ):
147+ class UnsupportedFrameError (ProtocolError ):
149148 """
150149 The remote peer sent a frame that is unsupported in this context.
151150
152151 .. versionadded:: 2.1.0
152+
153+ .. versionchanged:: 4.0.0
154+ Removed deprecated KeyError parent class.
153155 """
154- # TODO: Remove the KeyError in 3.0.0
155156 pass
156157
157158
@@ -181,6 +182,6 @@ class DenialOfServiceError(ProtocolError):
181182
182183 .. versionadded:: 2.5.0
183184 """
184- #: The error code that corresponds to this kind of
185+ #: The error code corresponds to this kind of
185186 #: :class:`ProtocolError <h2.exceptions.ProtocolError>`
186187 error_code = h2 .errors .ErrorCodes .ENHANCE_YOUR_CALM
0 commit comments