Skip to content

Commit 22b7b76

Browse files
asottileshin-
authored andcommitted
Use six.moves to handle a py2+py3 import
Signed-off-by: Anthony Sottile <[email protected]>
1 parent b4efdc1 commit 22b7b76

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docker/transport/unixconn.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import six
22
import requests.adapters
33
import socket
4+
from six.moves import http_client as httplib
45

56
from .. import constants
67

7-
if six.PY3:
8-
import http.client as httplib
9-
else:
10-
import httplib
11-
128
try:
139
import requests.packages.urllib3 as urllib3
1410
except ImportError:

0 commit comments

Comments
 (0)