From bbf512a7cb89f445d449c9f8d5ae5f172d0be102 Mon Sep 17 00:00:00 2001 From: Jorge Maroto Date: Wed, 2 Jun 2021 19:55:31 +0200 Subject: [PATCH] Fix `retry` warning ``` site-packages/sdcclient/_common.py:11: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead ``` --- sdcclient/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdcclient/_common.py b/sdcclient/_common.py index 8e878a7b..2a86f0b7 100644 --- a/sdcclient/_common.py +++ b/sdcclient/_common.py @@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs): retry_strategy = Retry( total=3, status_forcelist=[403, 404, 429, 500, 502, 503, 504], - method_whitelist=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"], + allowed_methods=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"], backoff_factor=2, ) kwargs["max_retries"] = retry_strategy