aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--urllib3/response.py5
-rw-r--r--urllib3/util/response.py5
2 files changed, 2 insertions, 8 deletions
diff --git a/urllib3/response.py b/urllib3/response.py
index 64273db..c41bd2c 100644
--- a/urllib3/response.py
+++ b/urllib3/response.py
@@ -1,7 +1,3 @@
-try:
- import http.client as httplib
-except ImportError:
- import httplib
from contextlib import contextmanager
import zlib
import io
@@ -12,6 +8,7 @@ from .exceptions import (
ProtocolError, DecodeError, ReadTimeoutError, ResponseNotChunked
)
from six import string_types as basestring, binary_type, PY3
+from six.moves import http_client as httplib
from .connection import HTTPException, BaseSSLError
from .util.response import is_fp_closed, is_response_to_head
diff --git a/urllib3/util/response.py b/urllib3/util/response.py
index 767ee15..6695809 100644
--- a/urllib3/util/response.py
+++ b/urllib3/util/response.py
@@ -1,7 +1,4 @@
-try:
- import http.client as httplib
-except ImportError:
- import httplib
+from six.moves import http_client as httplib
from ..exceptions import HeaderParsingError