Skip to content

Commit 0b516a0

Browse files
Onky for >= 3.13
1 parent 981006e commit 0b516a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

run_release.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,11 @@ def prepare_pydoc_topics(db: ReleaseShelf) -> None:
491491
db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "topics.py",
492492
db["git_repo"] / "Lib" / "pydoc_data" / "topics.py",
493493
)
494-
shutil.copy2(
495-
db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "module_docs.py",
496-
db["git_repo"] / "Lib" / "pydoc_data" / "module_docs.py",
497-
)
494+
if db["release"].as_tuple() >= (3, 13):
495+
shutil.copy2(
496+
db["git_repo"] / "Doc" / "build" / "pydoc-topics" / "module_docs.py",
497+
db["git_repo"] / "Lib" / "pydoc_data" / "module_docs.py",
498+
)
498499
subprocess.check_call(
499500
["git", "commit", "-a", "--amend", "--no-edit"], cwd=db["git_repo"]
500501
)

0 commit comments

Comments
 (0)