Skip to content
Snippets Groups Projects
Unverified Commit b3b1ff1c authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

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


(cherry picked from commit 17dbb6bc)

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

Co-authored-by: default avatarEzio Melotti <ezio.melotti@gmail.com>
parent 06389410
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment