mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)
This commit is contained in:
parent
d8f530fe32
commit
6881ea936e
24 changed files with 28 additions and 29 deletions
|
@ -692,7 +692,7 @@ class build_ext(Command):
|
|||
suffix = '_' + ext.name.split('.')[-1]
|
||||
try:
|
||||
# Unicode module name support as defined in PEP-489
|
||||
# https://www.python.org/dev/peps/pep-0489/#export-hook-name
|
||||
# https://peps.python.org/pep-0489/#export-hook-name
|
||||
suffix.encode('ascii')
|
||||
except UnicodeEncodeError:
|
||||
suffix = 'U' + suffix.encode('punycode').replace(b'-', b'_').decode('ascii')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue