From 7d515ac5108361ef8ae8a553fc10018adefb3fde Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 21 Sep 2021 21:09:46 -0700 Subject: [PATCH] fetch-contributor-data: Modernize set literal syntax. Signed-off-by: Anders Kaseorg --- tools/fetch-contributor-data | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/fetch-contributor-data b/tools/fetch-contributor-data index 68abfad0f5..8adc132cfc 100755 --- a/tools/fetch-contributor-data +++ b/tools/fetch-contributor-data @@ -71,14 +71,12 @@ def fetch_contributors(repo_name: str, max_retries: int) -> List[Contributor]: retry = Retry( total=max_retries, backoff_factor=2.0, - status_forcelist=set( - [ - 403, # Github does unauth rate-limiting via 403's - 429, # The formal rate-limiting response code - 502, # Bad gateway - 503, # Service unavailable - ] - ), + status_forcelist={ + 403, # Github does unauth rate-limiting via 403's + 429, # The formal rate-limiting response code + 502, # Bad gateway + 503, # Service unavailable + }, ) session = GithubSession(max_retries=retry) while True: