File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 92
92
This saves the maintainer the effort of going through the Mercurial log
93
93
when researching a change.
94
94
95
- This article explains the new features in Python {version}, compared to 3.10 .
95
+ This article explains the new features in Python {version}, compared to {prev_version} .
96
96
97
97
For full details, see the :ref:`changelog <changelog>`.
98
98
@@ -848,10 +848,12 @@ def maybe_prepare_new_master_branch(db: DbfilenameShelf) -> None:
848
848
with cd (db ["git_repo" ]):
849
849
release_mod .bump (new_release )
850
850
851
+ prev_branch = f"{ release_tag .major } .{ release_tag .minor } "
851
852
new_branch = f"{ release_tag .major } .{ int (release_tag .minor )+ 1 } "
852
853
whatsnew_file = f"Doc/whatsnew/{ new_branch } "
853
854
with cd (db ["git_repo" ]), open (whatsnew_file , "w" ) as f :
854
- f .write (WHATS_NEW_TEMPLATE .format (version = new_branch ))
855
+ f .write (WHATS_NEW_TEMPLATE .format (version = new_branch ,
856
+ prev_version = prev_branch ))
855
857
856
858
subprocess .check_call (
857
859
["git" , "add" , whatsnew_file ],
You can’t perform that action at this time.
0 commit comments