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

Skip to content

Commit 35ce2b7

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

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
@@ -395,7 +395,8 @@ def run(self):
395395
text = 'The NEWS file is not available.'
396396
node = nodes.strong(text, text)
397397
return [node]
398-
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
398+
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
399+
r'issue?@action=redirect&bpo=\1>`__',
399400
content)
400401
content = whatsnew_re.sub(r'\1', content)
401402
# remove first 3 lines as they are the main heading

0 commit comments

Comments
 (0)
0