mirror of
1
0
Fork 0

Remove the support for parallel updates

This triggers GitHub's rate limiter...
This commit is contained in:
Amir 2024-02-11 18:33:15 +01:00
parent e6f509e6e1
commit bef26975b3
1 changed files with 1 additions and 13 deletions

View File

@ -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)