diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2021-07-30 13:54:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 13:54:46 (GMT) |
commit | be42c06bb01206209430f3ac08b72643dc7cad1c (patch) | |
tree | 85df7eaca19021bab89cb63f7c8022dcbe13c2fb /Lib | |
parent | ea4673ed0757e9bfe8774e60cfae3313e9927b5f (diff) | |
download | cpython-be42c06bb01206209430f3ac08b72643dc7cad1c.zip cpython-be42c06bb01206209430f3ac08b72643dc7cad1c.tar.gz cpython-be42c06bb01206209430f3ac08b72643dc7cad1c.tar.bz2 |
Update URLs in comments and metadata to use HTTPS (GH-27458)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_functions.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_loading.py | 2 | ||||
-rw-r--r-- | Lib/distutils/README | 4 | ||||
-rw-r--r-- | Lib/functools.py | 4 | ||||
-rw-r--r-- | Lib/idlelib/macosx.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/tests/data/py2_test_grammar.py | 2 | ||||
-rw-r--r-- | Lib/lib2to3/tests/data/py3_test_grammar.py | 2 | ||||
-rwxr-xr-x | Lib/pydoc.py | 2 | ||||
-rw-r--r-- | Lib/test/test_docxmlrpc.py | 2 | ||||
-rw-r--r-- | Lib/turtle.py | 2 | ||||
-rw-r--r-- | Lib/urllib/request.py | 2 | ||||
-rw-r--r-- | Lib/weakref.py | 2 | ||||
-rw-r--r-- | Lib/xml/etree/ElementInclude.py | 2 | ||||
-rw-r--r-- | Lib/xml/etree/ElementPath.py | 2 | ||||
-rw-r--r-- | Lib/xml/etree/ElementTree.py | 4 | ||||
-rw-r--r-- | Lib/xml/etree/__init__.py | 2 | ||||
-rw-r--r-- | Lib/xmlrpc/server.py | 2 |
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 7b930f9..ea89227 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -93,7 +93,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 b1f1fe8..357c1df 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -492,7 +492,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) """ @@ -660,7 +660,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 1603618..9f0acd0 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 two instances together. This ' - b'follows <a href="http://www.python.org/dev/peps/pep-0008/">' + b'follows <a href="https://www.python.org/dev/peps/pep-0008/">' b'PEP008</a>, but has nothing<br>\nto do ' b'with <a href="http://www.rfc-editor.org/rfc/rfc1952.txt">' b'RFC1952</a>. Case should matter: pEp008 ' diff --git a/Lib/turtle.py b/Lib/turtle.py index 95d55e9..2e57324 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 8363905..eca6cc3 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 0d401db..cd3c354 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 9924680..e9409fd 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)) |