File tree Expand file tree Collapse file tree 9 files changed +15
-14
lines changed Expand file tree Collapse file tree 9 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,8 @@ def run(self):
429
429
430
430
# Support for including Misc/NEWS
431
431
432
- issue_re = re .compile ('(?:[Ii]ssue #|bpo-)([0-9]+)' )
432
+ issue_re = re .compile ('(?:[Ii]ssue #|bpo-)([0-9]+)' , re .I )
433
+ gh_issue_re = re .compile ('(?:gh-issue-|gh-)([0-9]+)' , re .I )
433
434
whatsnew_re = re .compile (r"(?im)^what's new in (.*?)\??$" )
434
435
435
436
@@ -456,9 +457,9 @@ def run(self):
456
457
text = 'The NEWS file is not available.'
457
458
node = nodes .strong (text , text )
458
459
return [node ]
459
- content = issue_re .sub (r'`bpo-\1 <https://bugs.python.org/'
460
- r' issue?@action=redirect&bpo=\1>`__' ,
461
- content )
460
+ content = issue_re .sub (r':issue:`\1`' , content )
461
+ # Fallback handling for the GitHub issue
462
+ content = gh_issue_re . sub ( r':gh:`\1`' , content )
462
463
content = whatsnew_re .sub (r'\1' , content )
463
464
# remove first 3 lines as they are the main heading
464
465
lines = ['.. default-role:: obj' , '' ] + content .splitlines ()[3 :]
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ now result in :exc:`MemoryError`. Patch by Erlend E. Aasland.
232
232
.. section: Library
233
233
234
234
Fix segfault in :meth: `sqlite3.Connection.backup ` if no argument was
235
- provided. The regression was introduced by GH- 23838. Patch by Erlend E.
235
+ provided. The regression was introduced by PR 23838. Patch by Erlend E.
236
236
Aasland.
237
237
238
238
..
Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ raised. Patch by Erlend E. Aasland.
574
574
.. nonce: t9XEkQ
575
575
.. section: Library
576
576
577
- Fix a regression introduced in GH- 24562, where an empty bytestring was
577
+ Fix a regression introduced in PR 24562, where an empty bytestring was
578
578
fetched as ``None `` instead of ``b'' `` in :mod: `sqlite3 `. Patch by Mariusz
579
579
Felisiak.
580
580
Original file line number Diff line number Diff line change @@ -941,7 +941,7 @@ result from ``entry_points()`` as deprecated.
941
941
942
942
..
943
943
944
- .. bpo : 47383
944
+ .. gh : 47383
945
945
.. date: 2021-04-08-19-32-26
946
946
.. nonce: YI1hdL
947
947
.. section: Library
@@ -1001,7 +1001,7 @@ some :mod:`dataclasses`.
1001
1001
1002
1002
Fix :mod: `sqlite3 ` regression for zero-sized blobs with converters, where
1003
1003
``b"" `` was returned instead of ``None ``. The regression was introduced by
1004
- GH- 24723. Patch by Erlend E. Aasland.
1004
+ PR 24723. Patch by Erlend E. Aasland.
1005
1005
1006
1006
..
1007
1007
Original file line number Diff line number Diff line change @@ -1597,7 +1597,7 @@ use map function instead of genexpr in capwords.
1597
1597
.. section: Library
1598
1598
1599
1599
Fix typo: ``importlib.find_loader `` is really slated for removal in Python
1600
- 3.12 not 3.10, like the others in GH- 25169.
1600
+ 3.12 not 3.10, like the others in PR 25169.
1601
1601
1602
1602
Patch by Hugo van Kemenade.
1603
1603
Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ planned). Patch by Alex Waygood.
570
570
571
571
..
572
572
573
- .. bpo : 78157
573
+ .. gh : 78157
574
574
.. date: 2022-05-05-20-40-45
575
575
.. nonce: IA_9na
576
576
.. section: Library
@@ -1288,7 +1288,7 @@ Deprecate the chunk module.
1288
1288
1289
1289
..
1290
1290
1291
- .. bpo : 91498
1291
+ .. gh : 91498
1292
1292
.. date: 2022-04-10-08-39-44
1293
1293
.. nonce: 8oII92
1294
1294
.. section: Library
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ by Nir Soffer.
288
288
289
289
..
290
290
291
- .. bpo: 321010
291
+ .. bpo: 32101
292
292
.. date: 2017-11-29-00-42-47
293
293
.. nonce: -axD5l
294
294
.. section: Library
Original file line number Diff line number Diff line change @@ -4617,7 +4617,7 @@ Based on patch by c-fos.
4617
4617
.. section: Library
4618
4618
4619
4619
Remove HMAC default to md5 marked for removal in 3.8 (removal originally
4620
- planned in 3.6, bump to 3.8 in gh- 7062).
4620
+ planned in 3.6, bump to 3.8 in PR 7062).
4621
4621
4622
4622
..
4623
4623
Original file line number Diff line number Diff line change @@ -1335,7 +1335,7 @@ module on POSIX systems.
1335
1335
.. nonce: 9TWMlz
1336
1336
.. section: Library
1337
1337
1338
- Revert GH- 15522, which introduces a regression in
1338
+ Revert PR 15522, which introduces a regression in
1339
1339
:meth: `mimetypes.guess_type ` due to improper handling of filenames as urls.
1340
1340
1341
1341
..
You can’t perform that action at this time.
0 commit comments