Skip to content

Commit

Permalink
Add redirects to Misc/NEWS bpo links (GH-91454) (#91895)
Browse files Browse the repository at this point in the history
(cherry picked from commit 17dbb6b)

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

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
  • Loading branch information
miss-islington and ezio-melotti committed May 10, 2022
1 parent 0638941 commit b3b1ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/tools/extensions/pyspecific.py
Expand Up @@ -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
Expand Down

0 comments on commit b3b1ff1

Please sign in to comment.