File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1015,20 +1015,19 @@ def purge_the_cdn(db: ReleaseShelf) -> None:
10151015
10161016
10171017def modify_the_prerelease_page (db : ReleaseShelf ) -> None :
1018- pre_release_tags = {"rc" , "b" , "a" }
1019- if any (tag in str (db ["release" ]) for tag in pre_release_tags ):
1018+ if db ["release" ].is_final :
10201019 if not ask_question (
1021- "Have you already added the release to https://www.python.org/download/pre-releases/ ?"
1020+ "Have you already removed the release from https://www.python.org/download/pre-releases/ ?"
10221021 ):
10231022 raise ReleaseException (
1024- "The release has not been added to the pre-release page"
1023+ "The release has not been removed from the pre-release page"
10251024 )
10261025 else :
10271026 if not ask_question (
1028- "Have you already removed the release from https://www.python.org/download/pre-releases/ ?"
1027+ "Have you already added the release to https://www.python.org/download/pre-releases/ ?"
10291028 ):
10301029 raise ReleaseException (
1031- "The release has not been removed from the pre-release page"
1030+ "The release has not been added to the pre-release page"
10321031 )
10331032
10341033
You can’t perform that action at this time.
0 commit comments