diff options
Diffstat (limited to 'urllib3/util')
-rw-r--r-- | urllib3/util/request.py | 2 | ||||
-rw-r--r-- | urllib3/util/response.py | 5 | ||||
-rw-r--r-- | urllib3/util/retry.py | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/urllib3/util/request.py b/urllib3/util/request.py index bc64f6b..5f4ccfd 100644 --- a/urllib3/util/request.py +++ b/urllib3/util/request.py @@ -1,6 +1,6 @@ from base64 import b64encode -from ..packages.six import b +from six import b ACCEPT_ENCODING = 'gzip,deflate' diff --git a/urllib3/util/response.py b/urllib3/util/response.py index 767ee15..6695809 100644 --- a/urllib3/util/response.py +++ b/urllib3/util/response.py @@ -1,7 +1,4 @@ -try: - import http.client as httplib -except ImportError: - import httplib +from six.moves import http_client as httplib from ..exceptions import HeaderParsingError diff --git a/urllib3/util/retry.py b/urllib3/util/retry.py index 1fb1f23..178b374 100644 --- a/urllib3/util/retry.py +++ b/urllib3/util/retry.py @@ -8,7 +8,7 @@ from ..exceptions import ( ReadTimeoutError, ResponseError, ) -from ..packages import six +import six log = logging.getLogger(__name__) |