mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +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
|
@ -701,10 +701,10 @@ class HTMLDoc(Doc):
|
|||
url = escape(all).replace('"', '"')
|
||||
results.append('<a href="%s">%s</a>' % (url, url))
|
||||
elif rfc:
|
||||
url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
|
||||
url = 'https://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
|
||||
results.append('<a href="%s">%s</a>' % (url, escape(all)))
|
||||
elif pep:
|
||||
url = 'https://www.python.org/dev/peps/pep-%04d/' % int(pep)
|
||||
url = 'https://peps.python.org/pep-%04d/' % int(pep)
|
||||
results.append('<a href="%s">%s</a>' % (url, escape(all)))
|
||||
elif selfdot:
|
||||
# Create a link for methods like 'self.method(...)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue