aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/botocore/patches/01-unvendor-six.patch
blob: 32848c4f018771575338558d9a5f8e0780c31149 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- contrib/python/botocore/botocore/compat.py	(index)
+++ contrib/python/botocore/botocore/compat.py	(working tree)
@@ -22,7 +22,7 @@ import shlex
 import os
 from math import floor
 
-from botocore.vendored import six
+import six
 from botocore.exceptions import MD5UnavailableError
 from dateutil.tz import tzlocal
 from urllib3 import exceptions
@@ -31,7 +31,7 @@ logger = logging.getLogger(__name__)
 
 
 if six.PY3:
-    from botocore.vendored.six.moves import http_client
+    from six.moves import http_client
 
     class HTTPHeaders(http_client.HTTPMessage):
         pass
--- contrib/python/botocore/botocore/endpoint.py	(index)
+++ contrib/python/botocore/botocore/endpoint.py	(working tree)
@@ -17,7 +17,7 @@ import logging
 import time
 import threading
 
-from botocore.vendored import six
+from botocore.compat import six
 
 from botocore.awsrequest import create_request_object
 from botocore.exceptions import HTTPClientError
--- contrib/python/botocore/botocore/httpsession.py	(index)
+++ contrib/python/botocore/botocore/httpsession.py	(working tree)
@@ -20,8 +20,8 @@ except ImportError:
     from urllib3.util.ssl_ import SSLContext
 
 import botocore.awsrequest
-from botocore.vendored import six
-from botocore.vendored.six.moves.urllib_parse import unquote
+from botocore.compat import six
+from six.moves.urllib_parse import unquote
 from botocore.compat import filter_ssl_warnings, urlparse
 from botocore.exceptions import (
     ConnectionClosedError, EndpointConnectionError, HTTPClientError,
--- contrib/python/botocore/botocore/utils.py	(index)
+++ contrib/python/botocore/botocore/utils.py	(working tree)
@@ -35,7 +35,7 @@ from botocore.compat import (
         json, quote, zip_longest, urlsplit, urlunsplit, OrderedDict,
         six, urlparse, get_tzinfo_options, get_md5, MD5_AVAILABLE
 )
-from botocore.vendored.six.moves.urllib.request import getproxies, proxy_bypass
+from six.moves.urllib.request import getproxies, proxy_bypass
 from botocore.exceptions import (
     InvalidExpressionError, ConfigNotFound, InvalidDNSNameError, ClientError,
     MetadataRetrievalError, EndpointConnectionError, ReadTimeoutError,