Skip to content

Commit

Permalink
Drop boto 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jairhenrique committed Jun 27, 2023
1 parent 4f70152 commit b487695
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 119 deletions.
1 change: 0 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ VCR.py supports Python 3.8+, and `pypy <http://pypy.org>`__.
The following HTTP libraries are supported:

- ``aiohttp``
- ``boto``
- ``boto3``
- ``http.client``
- ``httplib2``
Expand Down
82 changes: 0 additions & 82 deletions tests/integration/test_boto.py

This file was deleted.

27 changes: 0 additions & 27 deletions vcr/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@
_HTTPSConnectionWithTimeout = httplib2.HTTPSConnectionWithTimeout
_SCHEME_TO_CONNECTION = httplib2.SCHEME_TO_CONNECTION

# Try to save the original types for boto
try:
import boto.https_connection
except ImportError: # pragma: no cover
pass
else:
_CertValidatingHTTPSConnection = boto.https_connection.CertValidatingHTTPSConnection

# Try to save the original types for Tornado
try:
import tornado.simple_httpclient
Expand Down Expand Up @@ -126,7 +118,6 @@ def build(self):
self._boto3(),
self._urllib3(),
self._httplib2(),
self._boto(),
self._tornado(),
self._aiohttp(),
self._httpx(),
Expand Down Expand Up @@ -274,17 +265,6 @@ def _httplib2(self):
"https": VCRHTTPSConnectionWithTimeout,
}

@_build_patchers_from_mock_triples_decorator
def _boto(self):
try:
import boto.https_connection as cpool
except ImportError: # pragma: no cover
pass
else:
from .stubs.boto_stubs import VCRCertValidatingHTTPSConnection

yield cpool, "CertValidatingHTTPSConnection", VCRCertValidatingHTTPSConnection

@_build_patchers_from_mock_triples_decorator
def _tornado(self):
try:
Expand Down Expand Up @@ -447,13 +427,6 @@ def reset_patchers():
yield mock.patch.object(cpool, "HTTPSConnectionWithTimeout", _HTTPSConnectionWithTimeout)
yield mock.patch.object(cpool, "SCHEME_TO_CONNECTION", _SCHEME_TO_CONNECTION)

try:
import boto.https_connection as cpool
except ImportError: # pragma: no cover
pass
else:
yield mock.patch.object(cpool, "CertValidatingHTTPSConnection", _CertValidatingHTTPSConnection)

try:
import tornado.simple_httpclient as simple
except ImportError: # pragma: no cover
Expand Down
9 changes: 0 additions & 9 deletions vcr/stubs/boto_stubs.py

This file was deleted.

0 comments on commit b487695

Please sign in to comment.