From 168879e366ec56b20fe4792b5851e8de32aaee87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Fri, 30 Jul 2021 16:34:04 +0200 Subject: [PATCH] [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 --- Doc/conf.py | 2 +- Doc/library/ast.rst | 2 +- Doc/library/contextlib.rst | 2 +- Doc/library/functools.rst | 2 +- Doc/library/re.rst | 4 ++-- Doc/library/webbrowser.rst | 4 ++-- Lib/ctypes/test/test_functions.py | 2 +- Lib/ctypes/test/test_loading.py | 2 +- Lib/distutils/README | 4 ++-- Lib/functools.py | 4 ++-- Lib/idlelib/macosx.py | 2 +- Lib/lib2to3/tests/data/py2_test_grammar.py | 2 +- Lib/lib2to3/tests/data/py3_test_grammar.py | 2 +- Lib/pydoc.py | 2 +- Lib/test/test_docxmlrpc.py | 2 +- Lib/turtle.py | 2 +- Lib/urllib/request.py | 2 +- Lib/weakref.py | 2 +- Lib/xml/etree/ElementInclude.py | 2 +- Lib/xml/etree/ElementPath.py | 2 +- Lib/xml/etree/ElementTree.py | 4 ++-- Lib/xml/etree/__init__.py | 2 +- Lib/xmlrpc/server.py | 2 +- Mac/BuildScript/resources/License.rtf | 2 +- Mac/README.rst | 14 +++++++------- Modules/_cursesmodule.c | 2 +- Modules/_elementtree.c | 2 +- Modules/_winapi.c | 2 +- Modules/gc_weakref.txt | 2 +- Parser/tokenizer.c | 2 +- Tools/freeze/README | 2 +- Tools/i18n/pygettext.py | 4 ++-- Tools/msi/README.txt | 2 +- Tools/msi/buildrelease.bat | 2 +- Tools/msi/bundle/bundle.wxs | 2 +- Tools/msi/common_en-US.wxl_template | 2 +- Tools/msi/exe/exe_en-US.wxl_template | 2 +- Tools/msi/msi.props | 2 +- setup.py | 16 ++++++++-------- 39 files changed, 58 insertions(+), 58 deletions(-) diff --git a/Doc/conf.py b/Doc/conf.py index 079d17717f38..d2dff7d7a8d8 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -86,7 +86,7 @@ # 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 284168d9f811..b8eecbda5e40 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -1427,7 +1427,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 - `_. + `_. * ``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 f87ee210550c..66a0f17a9234 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -146,7 +146,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 85d4e74698d2..b2901e43bef9 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -199,7 +199,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 9abbd8ba7361..950012a9b0fe 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 b7bfb655a715..5980ff5b3413 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) diff --git a/Lib/ctypes/test/test_functions.py b/Lib/ctypes/test/test_functions.py index 75628924206b..d3c6536f2766 100644 --- a/Lib/ctypes/test/test_functions.py +++ b/Lib/ctypes/test/test_functions.py @@ -389,7 +389,7 @@ class S8I(Structure): (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 ba655bceb8b2..2f9eb9d350e2 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -91,7 +91,7 @@ def test_1703286_A(self): # 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 23f488506f85..73bd25187c02 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 5cab497d2640..8506ed3827f2 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 eeaab59ae802..470de5d89cad 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 b5a4137d1615..866316173a5b 100644 --- a/Lib/lib2to3/tests/data/py2_test_grammar.py +++ b/Lib/lib2to3/tests/data/py2_test_grammar.py @@ -735,7 +735,7 @@ def testSelectors(self): 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 d06223207e1e..e1eee524874f 100644 --- a/Lib/lib2to3/tests/data/py3_test_grammar.py +++ b/Lib/lib2to3/tests/data/py3_test_grammar.py @@ -714,7 +714,7 @@ def testSelectors(self): 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 ffa4b62c1f17..bdc0849f6af7 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -694,7 +694,7 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}): url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc) results.append('%s' % (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('%s' % (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 7d3e30cbee96..772525028831 100644 --- a/Lib/test/test_docxmlrpc.py +++ b/Lib/test/test_docxmlrpc.py @@ -133,7 +133,7 @@ def test_autolinking(self): self.assertIn( (b'
add(x, y)
' b'Add two instances together. This ' - b'follows ' + b'follows ' b'PEP008, but has nothing
\nto do ' b'with ' b'RFC1952. Case should matter: pEp008 ' diff --git a/Lib/turtle.py b/Lib/turtle.py index 6e19032cce2a..793b35e2403d 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -38,7 +38,7 @@ ----- 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 af3fb9ca54a0..bbdc2254e3cb 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -64,7 +64,7 @@ # 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 5fa851dd6d77..a968139f9863 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 5303062716c4..40a9b2229247 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 d318e65d84a4..880ea7bd9911 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 ac82ed804199..fde303c875ce 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 27fd8f6d4e36..e2ec53421d3f 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 287e3243b10c..69a260f5b12c 100644 --- a/Lib/xmlrpc/server.py +++ b/Lib/xmlrpc/server.py @@ -750,7 +750,7 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}): url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc) results.append('%s' % (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('%s' % (url, escape(all))) elif text[end:end+1] == '(': results.append(self.namelink(name, methods, funcs, classes)) diff --git a/Mac/BuildScript/resources/License.rtf b/Mac/BuildScript/resources/License.rtf index 1dfdc1edc17f..f08b6509eb8b 100644 --- a/Mac/BuildScript/resources/License.rtf +++ b/Mac/BuildScript/resources/License.rtf @@ -16,7 +16,7 @@ Python was created in the early 1990s by Guido van Rossum at Stichting Mathemati \ In 1995, Guido continued his work on Python at the Corporation for National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) in Reston, Virginia where he released several versions of the software.\ \ -In May 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. In October of the same year, the PythonLabs team moved to Digital Creations (now Zope Corporation, see http://www.zope.org). In 2001, the Python Software Foundation (PSF, see http://www.python.org/psf/) was formed, a non-profit organization created specifically to own Python-related Intellectual Property. Zope Corporation is a sponsoring member of the PSF.\ +In May 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. In October of the same year, the PythonLabs team moved to Digital Creations (now Zope Corporation, see http://www.zope.org). In 2001, the Python Software Foundation (PSF, see https://www.python.org/psf/) was formed, a non-profit organization created specifically to own Python-related Intellectual Property. Zope Corporation is a sponsoring member of the PSF.\ \ All Python releases are Open Source (see http://www.opensource.org for the Open Source Definition). Historically, most, but not all, Python releases have also been GPL-compatible; the table below summarizes the various releases.\ \ diff --git a/Mac/README.rst b/Mac/README.rst index aa019dfe32e6..1670fe5747aa 100644 --- a/Mac/README.rst +++ b/Mac/README.rst @@ -226,7 +226,7 @@ distribution, this is installed by default on macOS 10.4 or later. Be aware, though, that the Cocoa-based AquaTk's supplied starting with macOS 10.6 have proven to be unstable. If possible, you should consider installing a newer version before building on macOS 10.6 or later, such as -the ActiveTcl 8.6. See http://www.python.org/download/mac/tcltk/. If you +the ActiveTcl 8.6. See https://www.python.org/download/mac/tcltk/. If you are building with an SDK, ensure that the newer Tcl and Tk frameworks are seen in the SDK's ``Library/Frameworks`` directory; you may need to manually create symlinks to their installed location, ``/Library/Frameworks``. @@ -293,7 +293,7 @@ GUI programs. As of 3.4.0, the ``pythonwx.x`` aliases are no longer installed. How do I create a binary distribution? ====================================== -Download and unpack the source release from http://www.python.org/download/. +Download and unpack the source release from https://www.python.org/download/. Go to the directory ``Mac/BuildScript``. There you will find a script ``build-installer.py`` that does all the work. This will download and build a number of 3rd-party libaries, configures and builds a framework Python, @@ -334,9 +334,9 @@ The configure script sometimes emits warnings like the one below:: configure: WARNING: libintl.h: section "Present But Cannot Be Compiled" configure: WARNING: libintl.h: proceeding with the preprocessor's result configure: WARNING: libintl.h: in the future, the compiler will take precedence - configure: WARNING: ## -------------------------------------- ## - configure: WARNING: ## Report this to http://bugs.python.org/ ## - configure: WARNING: ## -------------------------------------- ## + configure: WARNING: ## --------------------------------------- ## + configure: WARNING: ## Report this to https://bugs.python.org/ ## + configure: WARNING: ## --------------------------------------- ## This almost always means you are trying to build a universal binary for Python and have libraries in ``/usr/local`` that don't contain the required @@ -399,8 +399,8 @@ The basic implementation pattern is: Resources ========= - * http://www.python.org/download/mac/ + * https://www.python.org/downloads/macos/ - * http://www.python.org/community/sigs/current/pythonmac-sig/ + * https://www.python.org/community/sigs/current/pythonmac-sig/ * https://devguide.python.org/ diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index c84f8382274b..a32cc4b88435 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -35,7 +35,7 @@ A number of SysV or ncurses functions don't have wrappers yet; if you need a given function, add it and send a patch. See - http://www.python.org/dev/patches/ for instructions on how to submit + https://www.python.org/dev/patches/ for instructions on how to submit patches to Python. Here's a list of currently unsupported functions: diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 2c92a8aedb5a..67a00a3413b1 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -1,6 +1,6 @@ /*-------------------------------------------------------------------- * 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 - C accelerator for xml.etree.ElementTree * Copyright (c) 1999-2009 by Secret Labs AB. All rights reserved. diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 4206bb6c495e..1e0e4ec8b3da 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -32,7 +32,7 @@ */ /* Licensed to PSF under a Contributor Agreement. */ -/* See http://www.python.org/2.4/license for licensing details. */ +/* See https://www.python.org/2.4/license for licensing details. */ #include "Python.h" #include "structmember.h" // PyMemberDef diff --git a/Modules/gc_weakref.txt b/Modules/gc_weakref.txt index 2f18402c02a5..b5b9f7b2e3d4 100644 --- a/Modules/gc_weakref.txt +++ b/Modules/gc_weakref.txt @@ -47,7 +47,7 @@ soon as we execute Python code, threads other than the gc thread can run too, and they can do ordinary things with weakrefs that end up resurrecting CT while gc is running. - http://www.python.org/sf/1055820 + https://www.python.org/sf/1055820 shows how innocent it can be, and also how nasty. Variants of the three focussed test cases attached to that bug report are now part of Python's diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index f3c1d9b20ade..1a57db97c4ec 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -548,7 +548,7 @@ decoding_fgets(char *s, int size, struct tok_state *tok) "Non-UTF-8 code starting with '\\x%.2x' " "in file %U on line %i, " "but no encoding declared; " - "see http://python.org/dev/peps/pep-0263/ for details", + "see https://python.org/dev/peps/pep-0263/ for details", badchar, tok->filename, tok->lineno + 1); return error_ret(tok); } diff --git a/Tools/freeze/README b/Tools/freeze/README index 5bc5b049d5b8..098107c5d1a9 100644 --- a/Tools/freeze/README +++ b/Tools/freeze/README @@ -293,4 +293,4 @@ module ...: Additional Python modules (referenced by pathname) ---Guido van Rossum (home page: http://www.python.org/~guido/) +--Guido van Rossum (home page: https://www.python.org/~guido/) diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index b1d281d793bd..b29b0d8e12d2 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -52,8 +52,8 @@ pygettext searches only for _() by default, but see the -k/--keyword flag below for how to augment this. - [1] http://www.python.org/workshops/1997-10/proceedings/loewis.html - [2] http://www.gnu.org/software/gettext/gettext.html + [1] https://www.python.org/workshops/1997-10/proceedings/loewis.html + [2] https://www.gnu.org/software/gettext/gettext.html NOTE: pygettext attempts to be option and feature compatible with GNU xgettext where ever possible. However some options are still missing or are diff --git a/Tools/msi/README.txt b/Tools/msi/README.txt index 82635f3d2c2a..c85ee4564d83 100644 --- a/Tools/msi/README.txt +++ b/Tools/msi/README.txt @@ -167,7 +167,7 @@ The following properties may be passed when building these projects. by providing a unique URI for this property. It does not need to be an active internet address. Defaults to $(ComputerName). - Official releases use http://www.python.org/(architecture name) + Official releases use https://www.python.org/(architecture name) /p:DownloadUrlBase=(any URI) Specifies the base of a URL where missing parts of the installer layout diff --git a/Tools/msi/buildrelease.bat b/Tools/msi/buildrelease.bat index b72eedecb23c..4fbaf2c99ba9 100644 --- a/Tools/msi/buildrelease.bat +++ b/Tools/msi/buildrelease.bat @@ -12,7 +12,7 @@ rem rem The following substitutions will be applied to the release URI: rem Variable Description Example rem {arch} architecture amd64, win32 -set RELEASE_URI=http://www.python.org/{arch} +set RELEASE_URI=https://www.python.org/{arch} rem This is the URL that will be used to download installation files. rem The files available from the default URL *will* conflict with your diff --git a/Tools/msi/bundle/bundle.wxs b/Tools/msi/bundle/bundle.wxs index ddd6870f6255..e2f871889340 100644 --- a/Tools/msi/bundle/bundle.wxs +++ b/Tools/msi/bundle/bundle.wxs @@ -7,7 +7,7 @@ Version="$(var.Version)" IconSourceFile="..\..\..\PC\icons\setup.ico" Manufacturer="!(loc.Manufacturer)" - AboutUrl="http://www.python.org/" + AboutUrl="https://www.python.org/" Compressed="no" dep:ProviderKey="CPython-$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)"> diff --git a/Tools/msi/common_en-US.wxl_template b/Tools/msi/common_en-US.wxl_template index c95c271c27a7..adb8f40be9a8 100644 --- a/Tools/msi/common_en-US.wxl_template +++ b/Tools/msi/common_en-US.wxl_template @@ -14,5 +14,5 @@ A newer version of !(loc.ProductName) is already installed. An incorrect version of a prerequisite package is installed. Please uninstall any other versions of !(loc.ProductName) and try installing this again. The TARGETDIR variable must be provided when invoking this installer. - http://www.python.org/ + https://www.python.org/ diff --git a/Tools/msi/exe/exe_en-US.wxl_template b/Tools/msi/exe/exe_en-US.wxl_template index 1f9e290394b4..4cd9e3e654b2 100644 --- a/Tools/msi/exe/exe_en-US.wxl_template +++ b/Tools/msi/exe/exe_en-US.wxl_template @@ -4,5 +4,5 @@ executable Python {{ShortVersion}} ({{Bitness}}) Launches the !(loc.ProductName) interpreter. - http://www.python.org/ + https://www.python.org/ diff --git a/Tools/msi/msi.props b/Tools/msi/msi.props index 3f14501446a1..cb9221fddf8e 100644 --- a/Tools/msi/msi.props +++ b/Tools/msi/msi.props @@ -28,7 +28,7 @@ that intend to bundle Python should rebuild these modules with their own URI to avoid conflicting with the official releases. - The official releases use "http://www.python.org/$(ArchName)" + The official releases use "https://www.python.org/$(ArchName)" This is not the same as the DownloadUrl property used in the bundle projects. diff --git a/setup.py b/setup.py index 04eb6b291c77..1ac68df888d9 100644 --- a/setup.py +++ b/setup.py @@ -950,7 +950,7 @@ def detect_test_extensions(self): # Python PEP-3118 (buffer protocol) test module self.add(Extension('_testbuffer', ['_testbuffer.c'])) - # Test loading multiple modules from one compiled file (http://bugs.python.org/issue16421) + # Test loading multiple modules from one compiled file (https://bugs.python.org/issue16421) self.add(Extension('_testimportmultiple', ['_testimportmultiple.c'])) # Test multi-phase extension module init (PEP 489) @@ -1150,7 +1150,7 @@ def detect_dbm_gdbm(self): # similar functionality (but slower of course) implemented in Python. # Sleepycat^WOracle Berkeley DB interface. - # http://www.oracle.com/database/berkeley-db/db/index.html + # https://www.oracle.com/database/technologies/related/berkeleydb.html # # This requires the Sleepycat^WOracle DB code. The supported versions # are set below. Visit the URL above to download @@ -1192,7 +1192,7 @@ def gen_db_minor_ver_nums(major): '/usr/include/db3', '/usr/local/include/db3', '/opt/sfw/include/db3', - # Fink defaults (http://fink.sourceforge.net/) + # Fink defaults (https://www.finkproject.org/) '/sw/include/db4', '/sw/include/db3', ] @@ -1204,7 +1204,7 @@ def gen_db_minor_ver_nums(major): db_inc_paths.append('/usr/local/include/db4%d' % x) db_inc_paths.append('/pkg/db-4.%d/include' % x) db_inc_paths.append('/opt/db-4.%d/include' % x) - # MacPorts default (http://www.macports.org/) + # MacPorts default (https://www.macports.org/) db_inc_paths.append('/opt/local/include/db4%d' % x) # 3.x minor number specific paths for x in gen_db_minor_ver_nums(3): @@ -2287,12 +2287,12 @@ def detect_decimal(self): # Workarounds for toolchain bugs: if sysconfig.get_config_var('HAVE_IPA_PURE_CONST_BUG'): # Some versions of gcc miscompile inline asm: - # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 - # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 + # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html extra_compile_args.append('-fno-ipa-pure-const') if sysconfig.get_config_var('HAVE_GLIBC_MEMMOVE_BUG'): # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: - # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html + # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html undef_macros.append('_FORTIFY_SOURCE') # Uncomment for extra functionality: @@ -2567,7 +2567,7 @@ class DummyProcess: setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0], - url = "http://www.python.org/%d.%d" % sys.version_info[:2], + url = "https://www.python.org/%d.%d" % sys.version_info[:2], maintainer = "Guido van Rossum and the Python community", maintainer_email = "python-dev@python.org", description = "A high-level object-oriented programming language",