Skip to content

Commit ce85802

Browse files
committed
revert changes in the main script
1 parent 3f491ac commit ce85802

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# "potodo",
66
# "jinja2",
77
# "docutils",
8-
# "sphinx",
9-
# "python-docs-theme",
108
# ]
119
# ///
1210
import json
@@ -48,14 +46,15 @@ def get_completion_progress() -> Iterator['LanguageProjectData']:
4846
)
4947
subprocess.run(['make', '-C', cpython_dir / 'Doc', 'venv'], check=True)
5048
subprocess.run(['make', '-C', cpython_dir / 'Doc', 'gettext'], check=True)
51-
languages_built = dict(build_status.get_languages(PoolManager()))
49+
languages_built = dict(build_status.get_languages(http := PoolManager()))
5250

5351
with concurrent.futures.ThreadPoolExecutor() as executor:
5452
return executor.map(
5553
get_project_data,
5654
*zip(*get_languages_and_repos(devguide_dir)),
5755
itertools.repeat(languages_built),
5856
itertools.repeat(clones_dir),
57+
itertools.repeat(http),
5958
)
6059

6160

@@ -64,6 +63,7 @@ def get_project_data(
6463
repo: str | None,
6564
languages_built: dict[str, bool],
6665
clones_dir: str,
66+
http: PoolManager,
6767
) -> 'LanguageProjectData':
6868
built = language.code in languages_built
6969
if repo:

0 commit comments

Comments
 (0)