Skip to content
Myr

Drop unreachable except block (#69)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 4fe6bc0 · Browse files · 1 file+1 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−8 removed

  • other:+1 added−8 removed

1 file+1 added−8 removed

modified:httpcore/dispatch/http11.py+1 added-8 removed
92 unmodified lines
93 return response9495 async def close(self) -> None:96 event = h11.ConnectionClosed()97 try:98 # If we're in h11.MUST_CLOSE then we'll end up in h11.CLOSED.99 self.h11_state.send(event)97 self.h11_state.send(event)100 except h11.ProtocolError:101 # If we're in some other state then it's a premature close,102 # and we'll end up in h11.ERROR.103 pass10498 await self.writer.close()99100 async def _body_iter(self, timeout: OptionalTimeout) -> typing.AsyncIterator[bytes]:101 event = await self._receive_event(timeout)
34 unmodified lines