[Python-checkins] Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91536)

ambv webhook-mailer at python.org
Thu Apr 14 11:01:20 EDT 2022


https://github.com/python/cpython/commit/35ce2b771bb367bdfe2855afda52f8dc7e211a64
commit: 35ce2b771bb367bdfe2855afda52f8dc7e211a64
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-04-14T17:01:15+02:00
summary:

Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91536)

(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe)

Co-authored-by: Ezio Melotti <ezio.melotti at gmail.com>

files:
M Doc/tools/extensions/pyspecific.py

diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py
index 74de6ffa75559..7c448310f47f6 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -395,7 +395,8 @@ def run(self):
             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



More information about the Python-checkins mailing list