summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2021-07-30 06:54:46 -0700
committerGitHub <noreply@github.com>2021-07-30 15:54:46 +0200
commitbe42c06bb01206209430f3ac08b72643dc7cad1c (patch)
tree85df7eaca19021bab89cb63f7c8022dcbe13c2fb /Lib/pydoc.py
parentea4673ed0757e9bfe8774e60cfae3313e9927b5f (diff)
downloadcpython-git-be42c06bb01206209430f3ac08b72643dc7cad1c.tar.gz
Update URLs in comments and metadata to use HTTPS (GH-27458)
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 16036186f7..9f0acd0271 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -694,7 +694,7 @@ class HTMLDoc(Doc):
url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
results.append('<a href="%s">%s</a>' % (url, escape(all)))
elif pep:
- url = 'http://www.python.org/dev/peps/pep-%04d/' % int(pep)
+ url = 'https://www.python.org/dev/peps/pep-%04d/' % int(pep)
results.append('<a href="%s">%s</a>' % (url, escape(all)))
elif selfdot:
# Create a link for methods like 'self.method(...)'