Skip to content

Commit be42c06

Browse files
authored
Update URLs in comments and metadata to use HTTPS (GH-27458)
1 parent ea4673e commit be42c06

39 files changed

+58
-58
lines changed

Doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
# Custom sidebar templates, filenames relative to this file.
8787
html_sidebars = {
88-
# Defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars
88+
# Defaults taken from https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebars
8989
# Removes the quick search block
9090
'**': ['localtoc.html', 'relations.html', 'customsourcelink.html'],
9191
'index': ['indexsidebar.html'],

Doc/library/ast.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ Function and class definitions
17951795
* ``bases`` is a list of nodes for explicitly specified base classes.
17961796
* ``keywords`` is a list of :class:`keyword` nodes, principally for 'metaclass'.
17971797
Other keywords will be passed to the metaclass, as per `PEP-3115
1798-
<http://www.python.org/dev/peps/pep-3115/>`_.
1798+
<https://www.python.org/dev/peps/pep-3115/>`_.
17991799
* ``starargs`` and ``kwargs`` are each a single node, as in a function call.
18001800
starargs will be expanded to join the list of base classes, and kwargs will
18011801
be passed to the metaclass.

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Functions and classes provided:
171171
from contextlib import closing
172172
from urllib.request import urlopen
173173

174-
with closing(urlopen('http://www.python.org')) as page:
174+
with closing(urlopen('https://www.python.org')) as page:
175175
for line in page:
176176
print(line)
177177

Doc/library/functools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The :mod:`functools` module defines the following functions:
202202
@lru_cache(maxsize=32)
203203
def get_pep(num):
204204
'Retrieve text of a Python Enhancement Proposal'
205-
resource = 'http://www.python.org/dev/peps/pep-%04d/' % num
205+
resource = 'https://www.python.org/dev/peps/pep-%04d/' % num
206206
try:
207207
with urllib.request.urlopen(resource) as s:
208208
return s.read()

Doc/library/re.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ form.
931931
This is useful if you want to match an arbitrary literal string that may
932932
have regular expression metacharacters in it. For example::
933933

934-
>>> print(re.escape('http://www.python.org'))
935-
http://www\.python\.org
934+
>>> print(re.escape('https://www.python.org'))
935+
https://www\.python\.org
936936

937937
>>> legal_chars = string.ascii_lowercase + string.digits + "!#$%&'*+-.^_`|~:"
938938
>>> print('[%s]+' % re.escape(legal_chars))

Doc/library/webbrowser.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ parameters: ``-n`` opens the URL in a new browser window, if possible;
3939
``-t`` opens the URL in a new browser page ("tab"). The options are,
4040
naturally, mutually exclusive. Usage example::
4141

42-
python -m webbrowser -t "http://www.python.org"
42+
python -m webbrowser -t "https://www.python.org"
4343

4444
The following exception is defined:
4545

@@ -176,7 +176,7 @@ Notes:
176176

177177
Here are some simple examples::
178178

179-
url = 'http://docs.python.org/'
179+
url = 'https://docs.python.org/'
180180

181181
# Open URL in a new tab, if a browser window is already open.
182182
webbrowser.open_new_tab(url)

Lib/ctypes/test/test_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class S8I(Structure):
389389
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
390390

391391
def test_sf1651235(self):
392-
# see http://www.python.org/sf/1651235
392+
# see https://www.python.org/sf/1651235
393393

394394
proto = CFUNCTYPE(c_int, RECT, POINT)
395395
def callback(*args):

Lib/ctypes/test/test_loading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_1703286_A(self):
9393
# NOT fit into a 32-bit integer. FreeLibrary must be able
9494
# to accept this address.
9595

96-
# These are tests for http://www.python.org/sf/1703286
96+
# These are tests for https://www.python.org/sf/1703286
9797
handle = LoadLibrary("advapi32")
9898
FreeLibrary(handle)
9999

Lib/distutils/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ This directory contains the Distutils package.
22

33
There's a full documentation available at:
44

5-
http://docs.python.org/distutils/
5+
https://docs.python.org/distutils/
66

77
The Distutils-SIG web page is also a good starting point:
88

9-
http://www.python.org/sigs/distutils-sig/
9+
https://www.python.org/sigs/distutils-sig/
1010

1111
$Id$

Lib/functools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def lru_cache(maxsize=128, typed=False):
492492
with f.cache_info(). Clear the cache and statistics with f.cache_clear().
493493
Access the underlying function with f.__wrapped__.
494494
495-
See: http://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)
495+
See: https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)
496496
497497
"""
498498

@@ -660,7 +660,7 @@ def cache(user_function, /):
660660
def _c3_merge(sequences):
661661
"""Merges MROs in *sequences* to a single MRO using the C3 algorithm.
662662
663-
Adapted from http://www.python.org/download/releases/2.3/mro/.
663+
Adapted from https://www.python.org/download/releases/2.3/mro/.
664664
665665
"""
666666
result = []

0 commit comments

Comments
 (0)