Skip to content

Commit c760249

Browse files
committed
Revert fragments commited by mistake
1 parent f4c4ef9 commit c760249

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

build_docs.py

+8-11
Original file line numberDiff line numberDiff line change
@@ -790,15 +790,14 @@ def build(self):
790790
sphinxbuild = self.venv / "bin" / "sphinx-build"
791791
blurb = self.venv / "bin" / "blurb"
792792
# Disable cpython switchers, we handle them now:
793-
if self.version.as_tuple() <= (3, 7):
794-
run(
795-
[
796-
"sed",
797-
"-i",
798-
"s/ *-A switchers=1//",
799-
f"'{self.checkout / 'Doc' / 'Makefile'}'",
800-
]
801-
)
793+
run(
794+
[
795+
"sed",
796+
"-i",
797+
"s/ *-A switchers=1//",
798+
f"'{self.checkout / 'Doc' / 'Makefile'}'",
799+
]
800+
)
802801
self.version.setup_indexsidebar(
803802
self.checkout / "Doc" / "tools" / "templates" / "indexsidebar.html"
804803
)
@@ -1059,8 +1058,6 @@ def main() -> bool:
10591058
languages_dict = {language.tag: language for language in LANGUAGES}
10601059
versions = Version.filter(VERSIONS, args.branch)
10611060
languages = [languages_dict[tag] for tag in args.languages]
1062-
if not versions:
1063-
raise ValueError(f"Branch/version {args.branch} not found")
10641061
del args.languages
10651062
del args.branch
10661063
todo = list(product(versions, languages))

0 commit comments

Comments
 (0)