Skip to content

Commit

Permalink
Show requests deprecation warning by default
Browse files Browse the repository at this point in the history
This adds a warning filter that ensures that the requests
deprecation warning is printed unless a user manually disables it.
  • Loading branch information
JordonPhillips committed May 31, 2019
1 parent 4b9807d commit 47f7698
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions botocore/vendored/requests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
)


warnings.filterwarnings(
action="always",
category=DeprecationWarning,
module=__name__,
)


def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
Expand Down

0 comments on commit 47f7698

Please sign in to comment.