File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,8 @@ def run(self):
309
309
310
310
# Support for including Misc/NEWS
311
311
312
- issue_re = re .compile ('(?:[Ii]ssue #|bpo-)([0-9]+)' )
312
+ issue_re = re .compile ('(?:[Ii]ssue #|bpo-)([0-9]+)' , re .I )
313
+ gh_issue_re = re .compile ('(?:gh-issue-|gh-)([0-9]+)' , re .I )
313
314
whatsnew_re = re .compile (r"(?im)^what's new in (.*?)\??$" )
314
315
315
316
@@ -336,9 +337,9 @@ def run(self):
336
337
text = 'The NEWS file is not available.'
337
338
node = nodes .strong (text , text )
338
339
return [node ]
339
- content = issue_re .sub (r'`bpo-\1 <https://bugs.python.org/'
340
- r' issue?@action=redirect&bpo=\1>`__' ,
341
- content )
340
+ content = issue_re .sub (r':issue:`\1`' , content )
341
+ # Fallback handling for the GitHub issue
342
+ content = gh_issue_re . sub ( r':gh:`\1`' , content )
342
343
content = whatsnew_re .sub (r'\1' , content )
343
344
# remove first 3 lines as they are the main heading
344
345
lines = ['.. default-role:: obj' , '' ] + content .splitlines ()[3 :]
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ by Nir Soffer.
289
289
290
290
..
291
291
292
- .. bpo: 321010
292
+ .. bpo: 32101
293
293
.. date: 2017-11-29-00-42-47
294
294
.. nonce: -axD5l
295
295
.. section: Library
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Prevent ctypes crash when handling arrays in structs/unions.
13
13
.. nonce: 9TWMlz
14
14
.. section: Library
15
15
16
- Revert GH- 15522, which introduces a regression in
16
+ Revert PR 15522, which introduces a regression in
17
17
:meth: `mimetypes.guess_type ` due to improper handling of filenames as urls.
18
18
19
19
..
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry.
180
180
.. section: Library
181
181
182
182
The original fix for bpo-27657, "Fix urlparse() with numeric paths"
183
- (GH- 16839) included in 3.7.6, inadvertently introduced a behavior change
183
+ (PR 16839) included in 3.7.6, inadvertently introduced a behavior change
184
184
that broke several third-party packages relying on the original undefined
185
185
parsing behavior. The change is reverted in 3.7.7, restoring the behavior of
186
186
3.7.5 and earlier releases.
You can’t perform that action at this time.
0 commit comments