From 9e0a1d9bea2c9a009ff7ae169ce807738a88e9fe Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 16 Jun 2024 17:27:29 -0400 Subject: [PATCH] Use Retry.DEFAULT_ALLOWED_METHODS urllib3 1.26.0[1] deprecated Retry.DEFAULT_METHOD_WHITELIST, and now requires the use of Retry.DEFAULT_ALLOWED_METHODS. [1]: https://urllib3.readthedocs.io/en/stable/changelog.html#id33 Signed-off-by: Sergio Durigan Junior --- fedora/client/openidbaseclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora/client/openidbaseclient.py b/fedora/client/openidbaseclient.py index 263b4373..72633fc8 100644 --- a/fedora/client/openidbaseclient.py +++ b/fedora/client/openidbaseclient.py @@ -164,7 +164,7 @@ def __init__(self, base_url, login_url=None, useragent=None, debug=False, # Also hold on to retry logic. # http://www.coglib.com/~icordasc/blog/2014/12/retries-in-requests.html server_errors = [500, 501, 502, 503, 504, 506, 507, 508, 509, 599] - method_whitelist = Retry.DEFAULT_METHOD_WHITELIST.union(set(['POST'])) + method_whitelist = Retry.DEFAULT_ALLOWED_METHODS.union(set(['POST'])) if retries is not None: prefixes = ['http://', 'https://'] for prefix in prefixes: