Skip to content

Commit

Permalink
Remove putheader() and response_class().
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
felixfontein committed May 3, 2023
1 parent 115dbce commit a48dd4c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docker/transport/unixconn.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import requests.adapters
import socket
import http.client as httplib

from docker.transport.basehttpadapter import BaseHTTPAdapter
from .. import constants
Expand Down Expand Up @@ -28,12 +27,6 @@ def connect(self):
sock.connect(self.unix_socket)
self.sock = sock

def putheader(self, header, *values):
super().putheader(header, *values)

def response_class(self, sock, *args, **kwargs):
return httplib.HTTPResponse(sock, *args, **kwargs)


class UnixHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
def __init__(self, base_url, socket_path, timeout=60, maxsize=10):
Expand Down

0 comments on commit a48dd4c

Please sign in to comment.