From 25b90f8895dea1ad7739e7462dc1870a9c9c3d2d Mon Sep 17 00:00:00 2001 From: Varun Ravichandran Date: Fri, 23 Apr 2021 23:35:28 +0000 Subject: SERVER-55828: Replace urllib3's 'method_whitelist' attribute with 'allowed_methods' --- buildscripts/blackduck_hub.py | 2 +- buildscripts/resmokelib/logging/handlers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'buildscripts') diff --git a/buildscripts/blackduck_hub.py b/buildscripts/blackduck_hub.py index fb7f5eeeac2..d587077af60 100644 --- a/buildscripts/blackduck_hub.py +++ b/buildscripts/blackduck_hub.py @@ -109,7 +109,7 @@ class HTTPHandler(object): retry_status = [500, 502, 503, 504] # Retry for these statuses. retry = urllib3_retry.Retry( backoff_factor=0.1, # Enable backoff starting at 0.1s. - method_whitelist=False, # Support all HTTP verbs. + allowed_methods=False, # Support all HTTP verbs. status_forcelist=retry_status) adapter = requests.adapters.HTTPAdapter(max_retries=retry) diff --git a/buildscripts/resmokelib/logging/handlers.py b/buildscripts/resmokelib/logging/handlers.py index 457cda49ede..c18b1e9bc64 100644 --- a/buildscripts/resmokelib/logging/handlers.py +++ b/buildscripts/resmokelib/logging/handlers.py @@ -175,7 +175,7 @@ class HTTPHandler(object): retry_status = [500, 502, 503, 504] # Retry for these statuses. retry = urllib3_retry.Retry( backoff_factor=0.1, # Enable backoff starting at 0.1s. - method_whitelist=False, # Support all HTTP verbs. + allowed_methods=False, # Support all HTTP verbs. status_forcelist=retry_status) adapter = requests.adapters.HTTPAdapter(max_retries=retry) -- cgit v1.2.1