From bef26975b3a70154852a6bc3d222dc0780a587ad Mon Sep 17 00:00:00 2001 From: Amir Date: Sun, 11 Feb 2024 18:33:15 +0100 Subject: [PATCH] Remove the support for parallel updates This triggers GitHub's rate limiter... --- update_plugins.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/update_plugins.py b/update_plugins.py index d347593d..c2e8e724 100644 --- a/update_plugins.py +++ b/update_plugins.py @@ -1,11 +1,3 @@ -try: - import concurrent.futures as futures -except ImportError: - try: - import futures - except ImportError: - futures = None - import re import shutil import tempfile @@ -106,10 +98,6 @@ if __name__ == "__main__": temp_directory = tempfile.mkdtemp() try: - if futures: - with futures.ThreadPoolExecutor(16) as executor: - executor.map(update, PLUGINS.splitlines()) - else: - [update(x) for x in PLUGINS.splitlines()] + [update(x) for x in PLUGINS.splitlines()] finally: shutil.rmtree(temp_directory)