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

use allowed_method option instead of method_whitelist #350

Merged
merged 3 commits into from Dec 14, 2021
Merged

Conversation

Songmu
Copy link
Contributor

@Songmu Songmu commented Dec 14, 2021

To suppress DeprecationWarning.

I explicitly specify the version of urllib3 that the request package depends on as 1.26 or later. This is the version in which allowed_methods was introduced.

Also, the requests library has been updated to support urllib3 v1.26 since version 2.25, so I specify that as well.

https://github.com/psf/requests/blob/main/HISTORY.md#2250-2020-11-11

These changes meet our version requirements to support python 3.5.

@sonarcloud
Copy link

sonarcloud bot commented Dec 14, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@Konboi Konboi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -39,7 +39,7 @@ def __init__(self, base_url: str = "", session: Session = None, test_runner: str
if session is None:
strategy = Retry(
total=3,
method_whitelist=["GET", "PUT", "PATCH", "DELETE"],
allowed_methods=["GET", "PUT", "PATCH", "DELETE"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Songmu Songmu merged commit 229b11d into main Dec 14, 2021
@Songmu Songmu deleted the allowed_methods branch December 14, 2021 08:10
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.

None yet

2 participants