summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-03-30 11:00:27 (GMT)
committerGitHub <noreply@github.com>2022-03-30 11:00:27 (GMT)
commit6881ea936e277b1733bee581c4e59e3a5d53bb29 (patch)
tree6e3e42543aeec32f83ccb3592cc05889626e2dde /Lib/pydoc.py
parentd8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f (diff)
downloadcpython-6881ea936e277b1733bee581c4e59e3a5d53bb29.zip
cpython-6881ea936e277b1733bee581c4e59e3a5d53bb29.tar.gz
cpython-6881ea936e277b1733bee581c4e59e3a5d53bb29.tar.bz2
bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 18b476e..12c2bb4 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -701,10 +701,10 @@ class HTMLDoc(Doc):
url = escape(all).replace('"', '&quot;')
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(...)'