summaryrefslogtreecommitdiffstats
path: root/Doc/tools/extensions
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-10 07:47:04 (GMT)
committerGitHub <noreply@github.com>2022-05-10 07:47:04 (GMT)
commitb3b1ff1ca90efd36921fdb16900070a8b3d6baaf (patch)
tree9f587fc84bfe334cd375927f49bef756dffd621d /Doc/tools/extensions
parent06389410e97d4bea01900d53a5888bdd86dda50d (diff)
downloadcpython-b3b1ff1ca90efd36921fdb16900070a8b3d6baaf.zip
cpython-b3b1ff1ca90efd36921fdb16900070a8b3d6baaf.tar.gz
cpython-b3b1ff1ca90efd36921fdb16900070a8b3d6baaf.tar.bz2
Add redirects to Misc/NEWS bpo links (GH-91454) (#91895)
(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Doc/tools/extensions')
-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 71ec09f..cd9144e 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -417,7 +417,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