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

ezio-melotti webhook-mailer at python.org
Tue May 10 03:47:22 EDT 2022


https://github.com/python/cpython/commit/b3b1ff1ca90efd36921fdb16900070a8b3d6baaf
commit: b3b1ff1ca90efd36921fdb16900070a8b3d6baaf
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ezio-melotti <ezio.melotti at gmail.com>
date: 2022-05-10T09:47:04+02:00
summary:

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

(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe)

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

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 71ec09fd04701..cd9144ea09d3f 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -417,7 +417,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