summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2021-04-23 23:35:28 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-28 23:43:56 +0000
commit25b90f8895dea1ad7739e7462dc1870a9c9c3d2d (patch)
tree077fef6e0e1671b8a248ba81804bb409580df027 /buildscripts
parent64c485b5e1582af642b9a2e603e4277865b8c7dc (diff)
downloadmongo-25b90f8895dea1ad7739e7462dc1870a9c9c3d2d.tar.gz
SERVER-55828: Replace urllib3's 'method_whitelist' attribute with 'allowed_methods'
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/blackduck_hub.py2
-rw-r--r--buildscripts/resmokelib/logging/handlers.py2
2 files changed, 2 insertions, 2 deletions
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)