summaryrefslogtreecommitdiff
path: root/Doc/tools
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2022-04-14 16:06:01 +0200
committerGitHub <noreply@github.com>2022-04-14 16:06:01 +0200
commit17dbb6bc10ca8a8b602335414c047294f00afcbe (patch)
tree0b0b6e867342aa34f3a1440d93bfb11fd7afa4c5 /Doc/tools
parent0fc3517cf46ec79b4681c31916d4081055a7ed09 (diff)
downloadcpython-git-17dbb6bc10ca8a8b602335414c047294f00afcbe.tar.gz
Add redirects to Misc/NEWS bpo links (#91454)
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/extensions/pyspecific.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py
index 9fb54bc604..80533a97b1 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -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