From 01acff39dbb04793b115af0bd8d42415b3a03d9d Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Tue, 14 Nov 2023 12:23:49 +0000 Subject: [PATCH] resilient_requests: replace method_whitelist * method_whitelist was deprecated in urllib3 v1.26.0 and removed in v2. --- hepdata_cli/resilient_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hepdata_cli/resilient_requests.py b/hepdata_cli/resilient_requests.py index 63377da..5084a0a 100644 --- a/hepdata_cli/resilient_requests.py +++ b/hepdata_cli/resilient_requests.py @@ -43,7 +43,7 @@ def send(self, request, **kwargs): retry_strategy = Retry(total=TOTAL_RETRIES, backoff_factor=2, status_forcelist=[429, 500, 502, 503, 504], - method_whitelist=["GET", "POST"]) + allowed_methods=["GET", "POST"]) adapter = TimeoutHTTPAdapter(max_retries=retry_strategy)