Skip to content

Commit 2a58a59

Browse files
committed
Simplify function name
1 parent 6c0d770 commit 2a58a59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

run_release.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,18 +1014,18 @@ def purge_the_cdn(db: ReleaseShelf) -> None:
10141014
raise RuntimeError("Failed to purge the python.org/downloads CDN")
10151015

10161016

1017-
def modify_the_release_to_the_prerelease_pages(db: ReleaseShelf) -> None:
1017+
def modify_the_prereleases_page(db: ReleaseShelf) -> None:
10181018
pre_release_tags = {"rc", "b", "a"}
10191019
if any(tag in str(db["release"]) for tag in pre_release_tags):
10201020
if not ask_question(
1021-
"Have you already added the release to https://www.python.org/download/pre-releases/"
1021+
"Have you already added the release to https://www.python.org/download/pre-releases/ ?"
10221022
):
10231023
raise ReleaseException(
10241024
"The release has not been added to the pre-release page"
10251025
)
10261026
else:
10271027
if not ask_question(
1028-
"Have you already removed the release from https://www.python.org/download/pre-releases/"
1028+
"Have you already removed the release from https://www.python.org/download/pre-releases/ ?"
10291029
):
10301030
raise ReleaseException(
10311031
"The release has not been removed from the pre-release page"
@@ -1345,7 +1345,7 @@ def _api_key(api_key: str) -> str:
13451345
Task(remove_temporary_branch, "Removing temporary release branch"),
13461346
Task(run_add_to_python_dot_org, "Add files to python.org download page"),
13471347
Task(purge_the_cdn, "Purge the CDN of python.org/downloads"),
1348-
Task(modify_the_release_to_the_prerelease_pages, "Modify the pre-release page"),
1348+
Task(modify_the_prereleases_page, "Modify the pre-release page"),
13491349
Task(modify_the_docs_by_version_page, "Update docs by version page"),
13501350
]
13511351
automata = ReleaseDriver(

0 commit comments

Comments
 (0)