mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add redirects to Misc/NEWS bpo links (#91454)
This commit is contained in:
parent
0fc3517cf4
commit
17dbb6bc10
1 changed files with 2 additions and 1 deletions
|
@ -433,7 +433,8 @@ class MiscNews(Directive):
|
|||
text = 'The NEWS file is not available.'
|
||||
node = nodes.strong(text, text)
|
||||
return [node]
|
||||
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
|
||||
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
|
||||
r'issue?@action=redirect&bpo=\1>`__',
|
||||
content)
|
||||
content = whatsnew_re.sub(r'\1', content)
|
||||
# remove first 3 lines as they are the main heading
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue