bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)

This commit is contained in:
Hugo van Kemenade 2022-03-30 14:00:27 +03:00 committed by GitHub
parent d8f530fe32
commit 6881ea936e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 28 additions and 29 deletions

View file

@ -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')