Don't use duplicated modules
fix path
This commit is contained in:
parent
b50932b9a1
commit
dea6f47712
|
@ -22,15 +22,15 @@ from botocore.compat import six
|
||||||
from botocore.compat import HTTPHeaders, HTTPResponse, urlunsplit, urlsplit
|
from botocore.compat import HTTPHeaders, HTTPResponse, urlunsplit, urlsplit
|
||||||
from botocore.exceptions import UnseekableStreamError
|
from botocore.exceptions import UnseekableStreamError
|
||||||
from botocore.utils import percent_encode_sequence
|
from botocore.utils import percent_encode_sequence
|
||||||
from botocore.vendored.requests import models
|
from requests import models
|
||||||
from botocore.vendored.requests.sessions import REDIRECT_STATI
|
from requests.sessions import REDIRECT_STATI
|
||||||
from botocore.vendored.requests.packages.urllib3.connection import \
|
from urllib3.connection import \
|
||||||
VerifiedHTTPSConnection
|
VerifiedHTTPSConnection
|
||||||
from botocore.vendored.requests.packages.urllib3.connection import \
|
from urllib3.connection import \
|
||||||
HTTPConnection
|
HTTPConnection
|
||||||
from botocore.vendored.requests.packages.urllib3.connectionpool import \
|
from urllib3.connectionpool import \
|
||||||
HTTPConnectionPool
|
HTTPConnectionPool
|
||||||
from botocore.vendored.requests.packages.urllib3.connectionpool import \
|
from urllib3.connectionpool import \
|
||||||
HTTPSConnectionPool
|
HTTPSConnectionPool
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@ import sys
|
||||||
import inspect
|
import inspect
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from botocore.vendored import six
|
import six
|
||||||
from botocore.vendored.requests.packages.urllib3 import exceptions
|
from urllib3 import exceptions
|
||||||
|
|
||||||
|
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
|
|
|
@ -17,10 +17,10 @@ import logging
|
||||||
import time
|
import time
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from botocore.vendored.requests.sessions import Session
|
from requests.sessions import Session
|
||||||
from botocore.vendored.requests.utils import get_environ_proxies
|
from requests.utils import get_environ_proxies
|
||||||
from botocore.vendored.requests.exceptions import ConnectionError
|
from requests.exceptions import ConnectionError
|
||||||
from botocore.vendored import six
|
import six
|
||||||
|
|
||||||
from botocore.awsrequest import create_request_object
|
from botocore.awsrequest import create_request_object
|
||||||
from botocore.exceptions import BaseEndpointResolverError
|
from botocore.exceptions import BaseEndpointResolverError
|
||||||
|
@ -44,7 +44,7 @@ def convert_to_response_dict(http_response, operation_model):
|
||||||
This converts the requests library's HTTP response object to
|
This converts the requests library's HTTP response object to
|
||||||
a dictionary.
|
a dictionary.
|
||||||
|
|
||||||
:type http_response: botocore.vendored.requests.model.Response
|
:type http_response: requests.model.Response
|
||||||
:param http_response: The HTTP response from an AWS service request.
|
:param http_response: The HTTP response from an AWS service request.
|
||||||
|
|
||||||
:rtype: dict
|
:rtype: dict
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
||||||
# ANY KIND, either express or implied. See the License for the specific
|
# ANY KIND, either express or implied. See the License for the specific
|
||||||
# language governing permissions and limitations under the License.
|
# language governing permissions and limitations under the License.
|
||||||
from botocore.vendored.requests.exceptions import ConnectionError
|
from requests.exceptions import ConnectionError
|
||||||
|
|
||||||
|
|
||||||
class BotoCoreError(Exception):
|
class BotoCoreError(Exception):
|
||||||
|
|
|
@ -17,8 +17,8 @@ import functools
|
||||||
import logging
|
import logging
|
||||||
from binascii import crc32
|
from binascii import crc32
|
||||||
|
|
||||||
from botocore.vendored.requests import ConnectionError, Timeout
|
from requests import ConnectionError, Timeout
|
||||||
from botocore.vendored.requests.packages.urllib3.exceptions import ClosedPoolError
|
from urllib3.exceptions import ClosedPoolError
|
||||||
|
|
||||||
from botocore.exceptions import ChecksumError, EndpointConnectionError
|
from botocore.exceptions import ChecksumError, EndpointConnectionError
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ from dateutil.tz import tzlocal, tzutc
|
||||||
from botocore.exceptions import InvalidExpressionError, ConfigNotFound
|
from botocore.exceptions import InvalidExpressionError, ConfigNotFound
|
||||||
from botocore.exceptions import InvalidDNSNameError
|
from botocore.exceptions import InvalidDNSNameError
|
||||||
from botocore.compat import json, quote, zip_longest, urlsplit, urlunsplit
|
from botocore.compat import json, quote, zip_longest, urlsplit, urlunsplit
|
||||||
from botocore.vendored import requests
|
import requests
|
||||||
from botocore.compat import OrderedDict
|
from botocore.compat import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue