Skip to content

Commit 7f7b8dc

Browse files
committed
app engine compatibility: handle missing httplib._CS_* constants
fixes #320
1 parent 39a066e commit 7f7b8dc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/http/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
from httplib import (HTTP_PORT,
1212
HTTPS_PORT,
1313

14-
_CS_IDLE,
15-
_CS_REQ_STARTED,
16-
_CS_REQ_SENT,
17-
1814
CONTINUE,
1915
SWITCHING_PROTOCOLS,
2016
PROCESSING,
@@ -81,6 +77,9 @@
8177
# These may not be available on all versions of Python 2.6.x or 2.7.x
8278
try:
8379
from httplib import (
80+
_CS_IDLE,
81+
_CS_REQ_STARTED,
82+
_CS_REQ_SENT,
8483
_MAXLINE,
8584
_MAXHEADERS,
8685
_is_legal_header_name,

0 commit comments

Comments
 (0)