Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions requests_unixsocket/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
from requests.adapters import HTTPAdapter
from requests.compat import urlparse, unquote

try:
import http.client as httplib
except ImportError:
import httplib

try:
from requests.packages import urllib3
except ImportError:
Expand All @@ -16,7 +11,7 @@

# The following was adapted from some code from docker-py
# https://github.com/docker/docker-py/blob/master/docker/transport/unixconn.py
class UnixHTTPConnection(httplib.HTTPConnection, object):
class UnixHTTPConnection(urllib3.connection.HTTPConnection, object):

def __init__(self, unix_socket_url, timeout=60):
"""Create an HTTP connection to a unix domain socket
Expand Down