8000 Add redirects to Misc/NEWS bpo links (#91454) · python/cpython@17dbb6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 17dbb6b

Browse files
authored
Add redirects to Misc/NEWS bpo links (#91454)
1 parent 0fc3517 commit 17dbb6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tools/extensions/pyspecific.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ def run(self):
433433
text = 'The NEWS file is not available.'
434434
node = nodes.strong(text, text)
435435
return [node]
436-
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
436+
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
437+
r'issue?@action=redirect&bpo=\1>`__',
437438
content)
438439
content = whatsnew_re.sub(r'\1', content)
439440
# remove first 3 lines as they are the main heading

0 commit comments

Comments
 (0)
0