Don't use duplicated modules

fix path
This commit is contained in:
TANIGUCHI Takaki 2015-11-24 20:40:16 +09:00
parent af927425f0
commit 9c646b991c
7 changed files with 20 additions and 20 deletions

View file

@ -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

View file

@ -19,9 +19,9 @@ import warnings
import hashlib import hashlib
import logging import logging
from botocore.vendored import six import six
from botocore.exceptions import MD5UnavailableError from botocore.exceptions import MD5UnavailableError
from botocore.vendored.requests.packages.urllib3 import exceptions from urllib3 import exceptions
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View file

@ -17,11 +17,11 @@ import logging
import time import time
import threading import threading
from botocore.vendored.requests.adapters import HTTPAdapter from requests.adapters import HTTPAdapter
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 UnknownEndpointError from botocore.exceptions import UnknownEndpointError
@ -40,7 +40,7 @@ MAX_POOL_CONNECTIONS = 10
filter_ssl_warnings() filter_ssl_warnings()
try: try:
from botocore.vendored.requests.packages.urllib3.contrib import pyopenssl from urllib3.contrib import pyopenssl
pyopenssl.extract_from_urllib3() pyopenssl.extract_from_urllib3()
except ImportError: except ImportError:
pass pass
@ -52,7 +52,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

View file

@ -12,7 +12,7 @@
# 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 __future__ import unicode_literals from __future__ import unicode_literals
from botocore.vendored.requests.exceptions import ConnectionError from requests.exceptions import ConnectionError
class BotoCoreError(Exception): class BotoCoreError(Exception):

View file

@ -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

View file

@ -17,7 +17,7 @@ from pprint import pformat
from botocore.validate import validate_parameters from botocore.validate import validate_parameters
from botocore.exceptions import ParamValidationError, \ from botocore.exceptions import ParamValidationError, \
StubResponseError, StubAssertionError StubResponseError, StubAssertionError
from botocore.vendored.requests.models import Response from requests.models import Response
ANY = object() ANY = object()

View file

@ -28,7 +28,7 @@ from botocore.exceptions import InvalidExpressionError, ConfigNotFound
from botocore.exceptions import InvalidDNSNameError, ClientError from botocore.exceptions import InvalidDNSNameError, ClientError
from botocore.exceptions import MetadataRetrievalError from botocore.exceptions import MetadataRetrievalError
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