Starting on v1.26.0, urllib3 has deprecated Retry(method_whitelist=...) and Retry.DEFAULT_METHOD_WHITELIST.
Deprecated Retry options Retry.DEFAULT_METHOD_WHITELIST, Retry.DEFAULT_REDIRECT_HEADERS_BLACKLIST
and Retry(method_whitelist=...) in favor of Retry.DEFAULT_ALLOWED_METHODS,
Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT, and Retry(allowed_methods=...)
(Pull #2000) Starting in urllib3 v2.0: Deprecated options will be removed
Starting on
v1.26.0
, urllib3 has deprecatedRetry(method_whitelist=...)
andRetry.DEFAULT_METHOD_WHITELIST
.