8000 [3.9] Add redirects to Misc/NEWS bpo links (GH-91454) by miss-islington · Pull Request #91536 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add redirects to Misc/NEWS bpo links (GH-91454)
(cherry picked from commit 17dbb6b)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
  • Loading branch information
ezio-melotti authored and miss-islington committed Apr 14, 2022
commit b2a7a04334a7f89f189be59d94b20b8df5dba7df
3 changes: 2 additions & 1 deletion Doc/tools/extensions/pyspecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
0