Skip to content

Commit bef2697

Browse files
committed
Remove the support for parallel updates
This triggers GitHub's rate limiter...
1 parent e6f509e commit bef2697

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

update_plugins.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
try:
2-
import concurrent.futures as futures
3-
except ImportError:
4-
try:
5-
import futures
6-
except ImportError:
7-
futures = None
8-
91
import re
102
import shutil
113
import tempfile
@@ -106,10 +98,6 @@ def update(plugin):
10698
temp_directory = tempfile.mkdtemp()
10799

108100
try:
109-
if futures:
110-
with futures.ThreadPoolExecutor(16) as executor:
111-
executor.map(update, PLUGINS.splitlines())
112-
else:
113-
[update(x) for x in PLUGINS.splitlines()]
101+
[update(x) for x in PLUGINS.splitlines()]
114102
finally:
115103
shutil.rmtree(temp_directory)

0 commit comments

Comments
 (0)