From 47f7698201d28fac61e8bf3a3d573e63ae91349a Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Fri, 31 May 2019 12:18:03 -0700 Subject: [PATCH] Show requests deprecation warning by default This adds a warning filter that ensures that the requests deprecation warning is printed unless a user manually disables it. --- botocore/vendored/requests/api.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/botocore/vendored/requests/api.py b/botocore/vendored/requests/api.py index 85608b79d7..e094f91217 100644 --- a/botocore/vendored/requests/api.py +++ b/botocore/vendored/requests/api.py @@ -24,6 +24,13 @@ ) +warnings.filterwarnings( + action="always", + category=DeprecationWarning, + module=__name__, +) + + def request(method, url, **kwargs): """Constructs and sends a :class:`Request `.