mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue