From 69f70fdefa16cf69313697b8ef608ecdaebaccda Mon Sep 17 00:00:00 2001 From: Matt Goldberg Date: Fri, 19 May 2023 10:25:56 -0400 Subject: [PATCH] Swap deprecated urllib3 Retry arg 'method_whitelist' (removed in urllib3 2.0.0) for 'allowed_methods' --- src/franz/miniclient/backends/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/franz/miniclient/backends/requests.py b/src/franz/miniclient/backends/requests.py index 7b1cc63..1e208eb 100644 --- a/src/franz/miniclient/backends/requests.py +++ b/src/franz/miniclient/backends/requests.py @@ -36,7 +36,7 @@ retries = Retry(backoff_factor=0.1, connect=10, # 10 retries for connection-level errors status_forcelist=(), # Retry only on connection errors - method_whitelist=False) # Retry on all methods, even POST and PUT + allowed_methods=None) # Retry on all methods, even POST and PUT # We'll want to know if something contains unicode if sys.version_info >= (3, 0):