summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2021-07-30 14:34:04 (GMT)
committerGitHub <noreply@github.com>2021-07-30 14:34:04 (GMT)
commit168879e366ec56b20fe4792b5851e8de32aaee87 (patch)
tree3b8e60317024e9d04c16f3c5b0ee8d4a01d57ba7 /Lib
parenta603aa472a38f778e2ed0cce73168e15f03c352c (diff)
downloadcpython-168879e366ec56b20fe4792b5851e8de32aaee87.zip
cpython-168879e366ec56b20fe4792b5851e8de32aaee87.tar.gz
cpython-168879e366ec56b20fe4792b5851e8de32aaee87.tar.bz2
[3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)
(cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_functions.py2
-rw-r--r--Lib/ctypes/test/test_loading.py2
-rw-r--r--Lib/distutils/README4
-rw-r--r--Lib/functools.py4
-rw-r--r--Lib/idlelib/macosx.py2
-rw-r--r--Lib/lib2to3/tests/data/py2_test_grammar.py2
-rw-r--r--Lib/lib2to3/tests/data/py3_test_grammar.py2
-rwxr-xr-xLib/pydoc.py2
-rw-r--r--Lib/test/test_docxmlrpc.py2
-rw-r--r--Lib/turtle.py2
-rw-r--r--Lib/urllib/request.py2
-rw-r--r--Lib/weakref.py2
-rw-r--r--Lib/xml/etree/ElementInclude.py2
-rw-r--r--Lib/xml/etree/ElementPath.py2
-rw-r--r--Lib/xml/etree/ElementTree.py4
-rw-r--r--Lib/xml/etree/__init__.py2
-rw-r--r--Lib/xmlrpc/server.py2
17 files changed, 20 insertions, 20 deletions
diff --git a/Lib/ctypes/test/test_functions.py b/Lib/ctypes/test/test_functions.py
index 7562892..d3c6536 100644
--- a/Lib/ctypes/test/test_functions.py
+++ b/Lib/ctypes/test/test_functions.py
@@ -389,7 +389,7 @@ class FunctionTestCase(unittest.TestCase):
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
def test_sf1651235(self):
- # see http://www.python.org/sf/1651235
+ # see https://www.python.org/sf/1651235
proto = CFUNCTYPE(c_int, RECT, POINT)
def callback(*args):
diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py
index ba655bc..2f9eb9d 100644
--- a/Lib/ctypes/test/test_loading.py
+++ b/Lib/ctypes/test/test_loading.py
@@ -91,7 +91,7 @@ class LoaderTest(unittest.TestCase):
# NOT fit into a 32-bit integer. FreeLibrary must be able
# to accept this address.
- # These are tests for http://www.python.org/sf/1703286
+ # These are tests for https://www.python.org/sf/1703286
handle = LoadLibrary("advapi32")
FreeLibrary(handle)
diff --git a/Lib/distutils/README b/Lib/distutils/README
index 23f4885..73bd251 100644
--- a/Lib/distutils/README
+++ b/Lib/distutils/README
@@ -2,10 +2,10 @@ This directory contains the Distutils package.
There's a full documentation available at:
- http://docs.python.org/distutils/
+ https://docs.python.org/distutils/
The Distutils-SIG web page is also a good starting point:
- http://www.python.org/sigs/distutils-sig/
+ https://www.python.org/sigs/distutils-sig/
$Id$
diff --git a/Lib/functools.py b/Lib/functools.py
index 5cab497..8506ed3 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -491,7 +491,7 @@ def lru_cache(maxsize=128, typed=False):
with f.cache_info(). Clear the cache and statistics with f.cache_clear().
Access the underlying function with f.__wrapped__.
- See: http://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)
+ See: https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)
"""
@@ -659,7 +659,7 @@ def cache(user_function, /):
def _c3_merge(sequences):
"""Merges MROs in *sequences* to a single MRO using the C3 algorithm.
- Adapted from http://www.python.org/download/releases/2.3/mro/.
+ Adapted from https://www.python.org/download/releases/2.3/mro/.
"""
result = []
diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py
index eeaab59..470de5d 100644
--- a/Lib/idlelib/macosx.py
+++ b/Lib/idlelib/macosx.py
@@ -83,7 +83,7 @@ def tkVersionWarning(root):
return False
return ("WARNING: The version of Tcl/Tk ({0}) in use may"
" be unstable.\n"
- "Visit http://www.python.org/download/mac/tcltk/"
+ "Visit https://www.python.org/download/mac/tcltk/"
" for current information.".format(patchlevel))
else:
return False
diff --git a/Lib/lib2to3/tests/data/py2_test_grammar.py b/Lib/lib2to3/tests/data/py2_test_grammar.py
index b5a4137..8663161 100644
--- a/Lib/lib2to3/tests/data/py2_test_grammar.py
+++ b/Lib/lib2to3/tests/data/py2_test_grammar.py
@@ -735,7 +735,7 @@ hello world
s = a[-5:]
s = a[:-1]
s = a[-4:-3]
- # A rough test of SF bug 1333982. http://python.org/sf/1333982
+ # A rough test of SF bug 1333982. https://python.org/sf/1333982
# The testing here is fairly incomplete.
# Test cases should include: commas with 1 and 2 colons
d = {}
diff --git a/Lib/lib2to3/tests/data/py3_test_grammar.py b/Lib/lib2to3/tests/data/py3_test_grammar.py
index d062232..e1eee52 100644
--- a/Lib/lib2to3/tests/data/py3_test_grammar.py
+++ b/Lib/lib2to3/tests/data/py3_test_grammar.py
@@ -714,7 +714,7 @@ class GrammarTests(unittest.TestCase):
s = a[-5:]
s = a[:-1]
s = a[-4:-3]
- # A rough test of SF bug 1333982. http://python.org/sf/1333982
+ # A rough test of SF bug 1333982. https://python.org/sf/1333982
# The testing here is fairly incomplete.
# Test cases should include: commas with 1 and 2 colons
d = {}
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index ffa4b62..bdc0849 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(...)'
diff --git a/Lib/test/test_docxmlrpc.py b/Lib/test/test_docxmlrpc.py
index 7d3e30c..7725250 100644
--- a/Lib/test/test_docxmlrpc.py
+++ b/Lib/test/test_docxmlrpc.py
@@ -133,7 +133,7 @@ class DocXMLRPCHTTPGETServer(unittest.TestCase):
self.assertIn(
(b'<dl><dt><a name="-add"><strong>add</strong></a>(x, y)</dt><dd>'
b'<tt>Add&nbsp;two&nbsp;instances&nbsp;together.&nbsp;This&nbsp;'
- b'follows&nbsp;<a href="http://www.python.org/dev/peps/pep-0008/">'
+ b'follows&nbsp;<a href="https://www.python.org/dev/peps/pep-0008/">'
b'PEP008</a>,&nbsp;but&nbsp;has&nbsp;nothing<br>\nto&nbsp;do&nbsp;'
b'with&nbsp;<a href="http://www.rfc-editor.org/rfc/rfc1952.txt">'
b'RFC1952</a>.&nbsp;Case&nbsp;should&nbsp;matter:&nbsp;pEp008&nbsp;'
diff --git a/Lib/turtle.py b/Lib/turtle.py
index 6e19032..793b35e 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -38,7 +38,7 @@ pictures can easily be drawn.
----- turtle.py
This module is an extended reimplementation of turtle.py from the
-Python standard distribution up to Python 2.5. (See: http://www.python.org)
+Python standard distribution up to Python 2.5. (See: https://www.python.org)
It tries to keep the merits of turtle.py and to be (nearly) 100%
compatible with it. This means in the first place to enable the
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index af3fb9c..bbdc225 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -64,7 +64,7 @@ opener = urllib.request.build_opener(proxy_support, authinfo,
# install it
urllib.request.install_opener(opener)
-f = urllib.request.urlopen('http://www.python.org/')
+f = urllib.request.urlopen('https://www.python.org/')
"""
# XXX issues:
diff --git a/Lib/weakref.py b/Lib/weakref.py
index 5fa851d..a968139 100644
--- a/Lib/weakref.py
+++ b/Lib/weakref.py
@@ -2,7 +2,7 @@
This module is an implementation of PEP 205:
-http://www.python.org/dev/peps/pep-0205/
+https://www.python.org/dev/peps/pep-0205/
"""
# Naming convention: Variables named "wr" are weak reference objects;
diff --git a/Lib/xml/etree/ElementInclude.py b/Lib/xml/etree/ElementInclude.py
index 5303062..40a9b22 100644
--- a/Lib/xml/etree/ElementInclude.py
+++ b/Lib/xml/etree/ElementInclude.py
@@ -42,7 +42,7 @@
# --------------------------------------------------------------------
# Licensed to PSF under a Contributor Agreement.
-# See http://www.python.org/psf/license for licensing details.
+# See https://www.python.org/psf/license for licensing details.
##
# Limited XInclude support for the ElementTree package.
diff --git a/Lib/xml/etree/ElementPath.py b/Lib/xml/etree/ElementPath.py
index d318e65..880ea7bd 100644
--- a/Lib/xml/etree/ElementPath.py
+++ b/Lib/xml/etree/ElementPath.py
@@ -48,7 +48,7 @@
# --------------------------------------------------------------------
# Licensed to PSF under a Contributor Agreement.
-# See http://www.python.org/psf/license for licensing details.
+# See https://www.python.org/psf/license for licensing details.
##
# Implementation module for XPath support. There's usually no reason
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index ac82ed8..fde303c 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -35,7 +35,7 @@
#---------------------------------------------------------------------
# Licensed to PSF under a Contributor Agreement.
-# See http://www.python.org/psf/license for licensing details.
+# See https://www.python.org/psf/license for licensing details.
#
# ElementTree
# Copyright (c) 1999-2008 by Fredrik Lundh. All rights reserved.
@@ -1283,7 +1283,7 @@ class XMLPullParser:
def __init__(self, events=None, *, _parser=None):
# The _parser argument is for internal use only and must not be relied
# upon in user code. It will be removed in a future release.
- # See http://bugs.python.org/issue17741 for more details.
+ # See https://bugs.python.org/issue17741 for more details.
self._events_queue = collections.deque()
self._parser = _parser or XMLParser(target=TreeBuilder())
diff --git a/Lib/xml/etree/__init__.py b/Lib/xml/etree/__init__.py
index 27fd8f6..e2ec534 100644
--- a/Lib/xml/etree/__init__.py
+++ b/Lib/xml/etree/__init__.py
@@ -30,4 +30,4 @@
# --------------------------------------------------------------------
# Licensed to PSF under a Contributor Agreement.
-# See http://www.python.org/psf/license for licensing details.
+# See https://www.python.org/psf/license for licensing details.
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py
index 287e324..69a260f 100644
--- a/Lib/xmlrpc/server.py
+++ b/Lib/xmlrpc/server.py
@@ -750,7 +750,7 @@ class ServerHTMLDoc(pydoc.HTMLDoc):
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 text[end:end+1] == '(':
results.append(self.namelink(name, methods, funcs, classes))