We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31bdd06 + 39b9c64 commit c958631Copy full SHA for c958631
requests_unixsocket/adapters.py
@@ -3,11 +3,6 @@
3
from requests.adapters import HTTPAdapter
4
from requests.compat import urlparse, unquote
5
6
-try:
7
- import http.client as httplib
8
-except ImportError:
9
- import httplib
10
-
11
try:
12
from requests.packages import urllib3
13
except ImportError:
@@ -16,7 +11,7 @@
16
17
# The following was adapted from some code from docker-py
18
# https://github.com/docker/docker-py/blob/master/docker/transport/unixconn.py
19
-class UnixHTTPConnection(httplib.HTTPConnection, object):
14
+class UnixHTTPConnection(urllib3.connection.HTTPConnection, object):
20
15
21
def __init__(self, unix_socket_url, timeout=60):
22
"""Create an HTTP connection to a unix domain socket
0 commit comments