Skip to content

Commit

Permalink
Add proper stacklevel to method_allowlist warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xmo-odoo committed Feb 16, 2021
1 parent 361f1e2 commit 5e34326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/urllib3/util/retry.py
Expand Up @@ -253,6 +253,7 @@ def __init__(
"Using 'method_whitelist' with Retry is deprecated and "
"will be removed in v2.0. Use 'allowed_methods' instead",
DeprecationWarning,
stacklevel=2,
)
allowed_methods = method_whitelist
if allowed_methods is _Default:
Expand Down

0 comments on commit 5e34326

Please sign in to comment.