From 0176fa171f9bb5a4453ceb2abe1cdff1696bee59 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 2 Jun 2016 18:21:29 -0700 Subject: Update parse_host and tests Signed-off-by: Joffrey F --- docker/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docker/client.py') 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) -- cgit v1.2.1