Remove the support for parallel updates
This triggers GitHub's rate limiter...
This commit is contained in:
parent
e6f509e6e1
commit
bef26975b3
1 changed files with 1 additions and 13 deletions
|
@ -1,11 +1,3 @@
|
||||||
try:
|
|
||||||
import concurrent.futures as futures
|
|
||||||
except ImportError:
|
|
||||||
try:
|
|
||||||
import futures
|
|
||||||
except ImportError:
|
|
||||||
futures = None
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -106,10 +98,6 @@ if __name__ == "__main__":
|
||||||
temp_directory = tempfile.mkdtemp()
|
temp_directory = tempfile.mkdtemp()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if futures:
|
[update(x) for x in PLUGINS.splitlines()]
|
||||||
with futures.ThreadPoolExecutor(16) as executor:
|
|
||||||
executor.map(update, PLUGINS.splitlines())
|
|
||||||
else:
|
|
||||||
[update(x) for x in PLUGINS.splitlines()]
|
|
||||||
finally:
|
finally:
|
||||||
shutil.rmtree(temp_directory)
|
shutil.rmtree(temp_directory)
|
||||||
|
|
Loading…
Reference in a new issue