summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-30 14:25:28 (GMT)
committerGitHub <noreply@github.com>2021-07-30 14:25:28 (GMT)
commitf7f1c26423b1208ef22cbe0f60f36e26a51cebf6 (patch)
tree0499d38d116e0ae4b995296b6db472d0952dd50d /Doc
parent6ca35f2891a4d88503dbb3143db21a0ff258915b (diff)
downloadcpython-f7f1c26423b1208ef22cbe0f60f36e26a51cebf6.zip
cpython-f7f1c26423b1208ef22cbe0f60f36e26a51cebf6.tar.gz
cpython-f7f1c26423b1208ef22cbe0f60f36e26a51cebf6.tar.bz2
Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)
(cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/conf.py2
-rw-r--r--Doc/library/ast.rst2
-rw-r--r--Doc/library/contextlib.rst2
-rw-r--r--Doc/library/functools.rst2
-rw-r--r--Doc/library/re.rst4
-rw-r--r--Doc/library/webbrowser.rst4
6 files changed, 8 insertions, 8 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 2a1d0e3..f626ce6 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -85,7 +85,7 @@ templates_path = ['tools/templates']
# Custom sidebar templates, filenames relative to this file.
html_sidebars = {
- # Defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars
+ # Defaults taken from https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebars
# Removes the quick search block
'**': ['localtoc.html', 'relations.html', 'customsourcelink.html'],
'index': ['indexsidebar.html'],
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index b3646ef..19e7bcc 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -1795,7 +1795,7 @@ Function and class definitions
* ``bases`` is a list of nodes for explicitly specified base classes.
* ``keywords`` is a list of :class:`keyword` nodes, principally for 'metaclass'.
Other keywords will be passed to the metaclass, as per `PEP-3115
- <http://www.python.org/dev/peps/pep-3115/>`_.
+ <https://www.python.org/dev/peps/pep-3115/>`_.
* ``starargs`` and ``kwargs`` are each a single node, as in a function call.
starargs will be expanded to join the list of base classes, and kwargs will
be passed to the metaclass.
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index c9065be..3dbf3a8 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -171,7 +171,7 @@ Functions and classes provided:
from contextlib import closing
from urllib.request import urlopen
- with closing(urlopen('http://www.python.org')) as page:
+ with closing(urlopen('https://www.python.org')) as page:
for line in page:
print(line)
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 871c94a..e40fe7b 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -202,7 +202,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 = 'http://www.python.org/dev/peps/pep-%04d/' % num
+ resource = 'https://www.python.org/dev/peps/pep-%04d/' % num
try:
with urllib.request.urlopen(resource) as s:
return s.read()
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 9abbd8b..950012a 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -931,8 +931,8 @@ form.
This is useful if you want to match an arbitrary literal string that may
have regular expression metacharacters in it. For example::
- >>> print(re.escape('http://www.python.org'))
- http://www\.python\.org
+ >>> print(re.escape('https://www.python.org'))
+ https://www\.python\.org
>>> legal_chars = string.ascii_lowercase + string.digits + "!#$%&'*+-.^_`|~:"
>>> print('[%s]+' % re.escape(legal_chars))
diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst
index 85a15b4..bd09191 100644
--- a/Doc/library/webbrowser.rst
+++ b/Doc/library/webbrowser.rst
@@ -39,7 +39,7 @@ parameters: ``-n`` opens the URL in a new browser window, if possible;
``-t`` opens the URL in a new browser page ("tab"). The options are,
naturally, mutually exclusive. Usage example::
- python -m webbrowser -t "http://www.python.org"
+ python -m webbrowser -t "https://www.python.org"
The following exception is defined:
@@ -176,7 +176,7 @@ Notes:
Here are some simple examples::
- url = 'http://docs.python.org/'
+ url = 'https://docs.python.org/'
# Open URL in a new tab, if a browser window is already open.
webbrowser.open_new_tab(url)