8000 Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91894) · python/cpython@5da1197 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5da1197

Browse files
Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91894)
(cherry picked from commit 17dbb6b) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
1 parent 6fd61c9 commit 5da1197

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
@@ -313,7 +313,8 @@ def run(self):
313313
text = 'The NEWS file is not available.' 6588 ;
314314
node = nodes.strong(text, text)
315315
return [node]
316-
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
316+
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
317+
r'issue?@action=redirect&bpo=\1>`__',
317318
content)
318319
content = whatsnew_re.sub(r'\1', content)
319320
# remove first 3 lines as they are the main heading

0 commit comments

Comments
 (0)
0