Remove unnecessary httplib export
MODIFY
src/urllib3/response.py
src/urllib3/response.py
@@ -24,7 +24,6 @@ from .exceptions import (
HTTPError,
)
from .packages.six import string_types as basestring, PY3
-from .packages.six.moves import http_client as httplib # noqa: F401
from .connection import HTTPException, BaseSSLError
from .util.response import is_fp_closed, is_response_to_head

MODIFY
test/test_connectionpool.py
test/test_connectionpool.py
@@ -10,8 +10,9 @@ from urllib3.connectionpool import (
HTTPConnectionPool,
HTTPSConnectionPool,
)
-from urllib3.response import httplib, HTTPResponse
+from urllib3.response import HTTPResponse
from urllib3.util.timeout import Timeout
+from urllib3.packages.six.moves import http_client as httplib
from urllib3.packages.six.moves.http_client import HTTPException
from urllib3.packages.six.moves.queue import Empty
from urllib3.packages.ssl_match_hostname import CertificateError

MODIFY
test/with_dummyserver/test_socketlevel.py
test/with_dummyserver/test_socketlevel.py
@@ -9,7 +9,7 @@ from urllib3.exceptions import (
SSLError,
ProtocolError,
)
-from urllib3.response import httplib
+from urllib3.packages.six.moves import http_client as httplib
from urllib3.util import ssl_wrap_socket
from urllib3.util.ssl_ import HAS_SNI
from urllib3.util import ssl_

Remove unnecessary httplib export