1
0
Fork 0
mirror of synced 2024-06-01 15:01:10 -04:00

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

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)