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

@ -208,7 +208,7 @@ The :mod:`functools` module defines the following functions:
@lru_cache(maxsize=32)
def get_pep(num):
'Retrieve text of a Python Enhancement Proposal'
resource = 'https://www.python.org/dev/peps/pep-%04d/' % num
resource = 'https://peps.python.org/pep-%04d/' % num
try:
with urllib.request.urlopen(resource) as s:
return s.read()