From 66f2b5a6662da8f54b6b1f6378810d152b55fc37 Mon Sep 17 00:00:00 2001 From: Will Frey Date: Fri, 1 Oct 2021 11:41:08 -0400 Subject: [PATCH] Update uploader.py Silences the deprecation warning ``` DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead ``` --- poetry/publishing/uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/publishing/uploader.py b/poetry/publishing/uploader.py index 798b2533af8..a4a25956367 100644 --- a/poetry/publishing/uploader.py +++ b/poetry/publishing/uploader.py @@ -69,7 +69,7 @@ def adapter(self) -> adapters.HTTPAdapter: retry = util.Retry( connect=5, total=10, - method_whitelist=["GET"], + allowed_methods=["GET"], status_forcelist=[500, 501, 502, 503], )