Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit c4988d0

Browse files
committed
Cleanup some unused constants.
1 parent d8f7f12 commit c4988d0

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

hyper/http20/stream.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,13 @@
1313
Each stream is identified by a monotonically increasing integer, assigned to
1414
the stream by the endpoint that initiated the stream.
1515
"""
16-
from h2.exceptions import StreamClosedError
17-
1816
from ..common.headers import HTTPHeaderMap
19-
from .exceptions import ProtocolError, StreamResetError
17+
from .exceptions import StreamResetError
2018
from .util import h2_safe_headers
21-
import collections
2219
import logging
23-
import zlib
2420

2521
log = logging.getLogger(__name__)
2622

27-
28-
# Define a set of states for a HTTP/2 stream.
29-
STATE_IDLE = 0
30-
STATE_OPEN = 1
31-
STATE_HALF_CLOSED_LOCAL = 2
32-
STATE_HALF_CLOSED_REMOTE = 3
33-
STATE_CLOSED = 4
34-
35-
3623
# Define the largest chunk of data we'll send in one go. Realistically, we
3724
# should take the MSS into account but that's pretty dull, so let's just say
3825
# 1kB and call it a day.

0 commit comments

Comments
 (0)