summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-14 15:01:15 (GMT)
committerGitHub <noreply@github.com>2022-04-14 15:01:15 (GMT)
commit35ce2b771bb367bdfe2855afda52f8dc7e211a64 (patch)
tree0051a50df8997048a53a007a444a79bfbf08ddf1 /Doc/tools
parentf3f5d4be7a9a8d058524c4b8e85371862245ae31 (diff)
downloadcpython-35ce2b771bb367bdfe2855afda52f8dc7e211a64.zip
cpython-35ce2b771bb367bdfe2855afda52f8dc7e211a64.tar.gz
cpython-35ce2b771bb367bdfe2855afda52f8dc7e211a64.tar.bz2
Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91536)
(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
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 74de6ff..7c44831 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -395,7 +395,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