summaryrefslogtreecommitdiff
path: root/docker/client.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-06-02 18:21:29 -0700
committerJoffrey F <joffrey@docker.com>2016-06-02 18:21:29 -0700
commit0176fa171f9bb5a4453ceb2abe1cdff1696bee59 (patch)
tree0d93e3c7921fd6d6dfbc797d163e62822fb5a1df /docker/client.py
parentd9227139238a824fcbab2229ea62e1dab64150d1 (diff)
downloaddocker-py-0176fa171f9bb5a4453ceb2abe1cdff1696bee59.tar.gz
Update parse_host and tests
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/client.py')
-rw-r--r--docker/client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/client.py b/docker/client.py
index 2da355a..b96a78c 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -14,7 +14,6 @@
import json
import struct
-import sys
import requests
import requests.exceptions
@@ -63,7 +62,9 @@ class Client(
self._auth_configs = auth.load_config()
- base_url = utils.parse_host(base_url, sys.platform, tls=bool(tls))
+ base_url = utils.parse_host(
+ base_url, constants.IS_WINDOWS_PLATFORM, tls=bool(tls)
+ )
if base_url.startswith('http+unix://'):
self._custom_adapter = UnixAdapter(base_url, timeout)
self.mount('http+docker://', self._custom_adapter)