Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap deprecated urllib3 Retry arg 'method_whitelist' for 'allowed_methods' #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgberg
Copy link

@mgberg mgberg commented May 19, 2023

As of urllib 2.0.0 (released 2023-04-26), the method_whitelist argument for Retry (which has been deprecated for a while) was removed in favor of allowed_methods.

This PR simply swaps the old argument for the new one. The behavior should be unchanged. Closes #22.

More info on the allowed_methods argument can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

urllib3 Retry API change
1 participant