2014-12-19 16:47:20 +00:00
|
|
|
From 0d6a559495203194128911071f7c2d0a21bd1500 Mon Sep 17 00:00:00 2001
|
2014-08-15 18:15:46 +00:00
|
|
|
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
|
|
Date: Fri, 25 Jul 2014 15:21:22 +0200
|
|
|
|
Subject: [PATCH] Do not use bundled requests
|
|
|
|
|
|
|
|
---
|
2014-12-19 16:47:20 +00:00
|
|
|
botocore/awsrequest.py | 12 ++++++------
|
|
|
|
botocore/compat.py | 2 +-
|
|
|
|
botocore/endpoint.py | 4 ++--
|
|
|
|
botocore/retryhandler.py | 4 ++--
|
|
|
|
botocore/utils.py | 2 +-
|
2014-08-15 18:15:46 +00:00
|
|
|
5 files changed, 12 insertions(+), 12 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/botocore/awsrequest.py b/botocore/awsrequest.py
|
2014-12-19 16:47:20 +00:00
|
|
|
index bf4a4da..ccc01a6 100644
|
2014-08-15 18:15:46 +00:00
|
|
|
--- a/botocore/awsrequest.py
|
|
|
|
+++ b/botocore/awsrequest.py
|
2014-12-19 16:47:20 +00:00
|
|
|
@@ -19,14 +19,14 @@ import socket
|
2014-08-15 18:15:46 +00:00
|
|
|
import inspect
|
|
|
|
|
2014-12-19 16:47:20 +00:00
|
|
|
from botocore.compat import six
|
2014-08-15 18:15:46 +00:00
|
|
|
-from botocore.vendored.requests import models
|
|
|
|
-from botocore.vendored.requests.sessions import REDIRECT_STATI
|
|
|
|
+from requests import models
|
|
|
|
+from requests.sessions import REDIRECT_STATI
|
2014-12-19 16:47:20 +00:00
|
|
|
from botocore.compat import HTTPHeaders, HTTPResponse
|
2014-08-15 18:15:46 +00:00
|
|
|
from botocore.exceptions import UnseekableStreamError
|
|
|
|
-from botocore.vendored.requests.packages.urllib3.connection import VerifiedHTTPSConnection
|
|
|
|
-from botocore.vendored.requests.packages.urllib3.connection import HTTPConnection
|
|
|
|
-from botocore.vendored.requests.packages.urllib3.connectionpool import HTTPConnectionPool
|
|
|
|
-from botocore.vendored.requests.packages.urllib3.connectionpool import HTTPSConnectionPool
|
|
|
|
+from urllib3.connection import VerifiedHTTPSConnection
|
|
|
|
+from urllib3.connection import HTTPConnection
|
|
|
|
+from urllib3.connectionpool import HTTPConnectionPool
|
|
|
|
+from urllib3.connectionpool import HTTPSConnectionPool
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
2014-12-19 16:47:20 +00:00
|
|
|
diff --git a/botocore/compat.py b/botocore/compat.py
|
|
|
|
index f759ccb..97adeb4 100644
|
|
|
|
--- a/botocore/compat.py
|
|
|
|
+++ b/botocore/compat.py
|
|
|
|
@@ -16,7 +16,7 @@ import datetime
|
|
|
|
import sys
|
|
|
|
import inspect
|
|
|
|
|
|
|
|
-from botocore.vendored import six
|
|
|
|
+import six
|
|
|
|
|
|
|
|
|
|
|
|
if six.PY3:
|
2014-08-15 18:15:46 +00:00
|
|
|
diff --git a/botocore/endpoint.py b/botocore/endpoint.py
|
2014-12-19 16:47:20 +00:00
|
|
|
index 963068d..9409499 100644
|
2014-08-15 18:15:46 +00:00
|
|
|
--- a/botocore/endpoint.py
|
|
|
|
+++ b/botocore/endpoint.py
|
|
|
|
@@ -17,8 +17,8 @@ import logging
|
|
|
|
import time
|
|
|
|
import threading
|
|
|
|
|
|
|
|
-from botocore.vendored.requests.sessions import Session
|
|
|
|
-from botocore.vendored.requests.utils import get_environ_proxies
|
|
|
|
+from requests.sessions import Session
|
|
|
|
+from requests.utils import get_environ_proxies
|
|
|
|
|
|
|
|
import botocore.response
|
2014-12-19 16:47:20 +00:00
|
|
|
import botocore.exceptions
|
2014-08-15 18:15:46 +00:00
|
|
|
diff --git a/botocore/retryhandler.py b/botocore/retryhandler.py
|
2014-12-19 16:47:20 +00:00
|
|
|
index 2505db2..c12d2e0 100644
|
2014-08-15 18:15:46 +00:00
|
|
|
--- a/botocore/retryhandler.py
|
|
|
|
+++ b/botocore/retryhandler.py
|
|
|
|
@@ -17,8 +17,8 @@ import functools
|
|
|
|
import logging
|
|
|
|
from binascii import crc32
|
|
|
|
|
|
|
|
-from botocore.vendored.requests import ConnectionError, Timeout
|
|
|
|
-from botocore.vendored.requests.packages.urllib3.exceptions import ClosedPoolError
|
|
|
|
+from requests import ConnectionError, Timeout
|
|
|
|
+from urllib3.exceptions import ClosedPoolError
|
|
|
|
|
|
|
|
from botocore.exceptions import ChecksumError
|
|
|
|
|
|
|
|
diff --git a/botocore/utils.py b/botocore/utils.py
|
2014-12-19 16:47:20 +00:00
|
|
|
index 91d5fd0..4c0db61 100644
|
2014-08-15 18:15:46 +00:00
|
|
|
--- a/botocore/utils.py
|
|
|
|
+++ b/botocore/utils.py
|
2014-12-19 16:47:20 +00:00
|
|
|
@@ -20,7 +20,7 @@ from dateutil.tz import tzlocal, tzutc
|
2014-08-15 18:15:46 +00:00
|
|
|
|
|
|
|
from botocore.exceptions import InvalidExpressionError, ConfigNotFound
|
|
|
|
from botocore.compat import json, quote
|
|
|
|
-from botocore.vendored import requests
|
|
|
|
+import requests
|
2014-12-19 16:47:20 +00:00
|
|
|
from botocore.compat import OrderedDict
|
2014-08-15 18:15:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2014-12-19 16:47:20 +00:00
|
|
|
2.1.0
|
2014-08-15 18:15:46 +00:00
|
|
|
|