From bc5bac095b30aa0afa131326b24e7ecad964eab1 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 4 Aug 2022 13:30:05 +0300 Subject: [PATCH] gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642) It updates links which redirect to HTTPS with different authority or path. (cherry picked from commit d0d0154443cafb2f0a2cdfb6a1267d80cce8388e) Co-authored-by: Serhiy Storchaka --- Doc/about.rst | 4 ++-- Doc/faq/general.rst | 2 +- Doc/faq/programming.rst | 2 +- Doc/howto/curses.rst | 2 +- Doc/install/index.rst | 2 +- Doc/library/random.rst | 2 +- Doc/library/stdtypes.rst | 2 +- Doc/library/tkinter.rst | 2 +- Doc/whatsnew/2.3.rst | 2 +- Doc/whatsnew/2.5.rst | 2 +- Doc/whatsnew/2.6.rst | 6 +++--- Lib/test/datetimetester.py | 2 +- Modules/_datetimemodule.c | 2 +- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Doc/about.rst b/Doc/about.rst index f0b908487b2d09..0ce35667924b92 100644 --- a/Doc/about.rst +++ b/Doc/about.rst @@ -6,7 +6,7 @@ About these documents These documents are generated from `reStructuredText`_ sources by `Sphinx`_, a document processor specifically written for the Python documentation. -.. _reStructuredText: http://docutils.sourceforge.net/rst.html +.. _reStructuredText: https://docutils.sourceforge.io/rst.html .. _Sphinx: http://sphinx-doc.org/ .. In the online version of these documents, you can submit comments and suggest @@ -21,7 +21,7 @@ Many thanks go to: * Fred L. Drake, Jr., the creator of the original Python documentation toolset and writer of much of the content; -* the `Docutils `_ project for creating +* the `Docutils `_ project for creating reStructuredText and the Docutils suite; * Fredrik Lundh for his Alternative Python Reference project from which Sphinx got many good ideas. diff --git a/Doc/faq/general.rst b/Doc/faq/general.rst index 7723114bcc18d3..f77bf7e321199b 100644 --- a/Doc/faq/general.rst +++ b/Doc/faq/general.rst @@ -336,7 +336,7 @@ different companies and organizations. High-profile Python projects include `the Mailman mailing list manager `_ and `the Zope application server -`_. Several Linux distributions, most notably `Red Hat +`_. Several Linux distributions, most notably `Red Hat `_, have written part or all of their installer and system administration software in Python. Companies that use Python internally include Google, Yahoo, and Lucasfilm Ltd. diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 646457b44514c0..79176d02fb5140 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -95,7 +95,7 @@ The following packages can help with the creation of console and GUI executables: * `Nuitka `_ (Cross-platform) -* `PyInstaller `_ (Cross-platform) +* `PyInstaller `_ (Cross-platform) * `PyOxidizer `_ (Cross-platform) * `cx_Freeze `_ (Cross-platform) * `py2app `_ (macOS only) diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index fdb0dd4352fc83..b4de190f3c8927 100644 --- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -543,6 +543,6 @@ learn more about submitting patches to Python. * `The ncurses FAQ `_ * `"Use curses... don't swear" `_: video of a PyCon 2013 talk on controlling terminals using curses or Urwid. -* `"Console Applications with Urwid" `_: +* `"Console Applications with Urwid" `_: video of a PyCon CA 2012 talk demonstrating some applications written using Urwid. diff --git a/Doc/install/index.rst b/Doc/install/index.rst index 63b64b95fc721e..84df5e7cb3689d 100644 --- a/Doc/install/index.rst +++ b/Doc/install/index.rst @@ -1062,7 +1062,7 @@ normal libraries do. .. seealso:: - `Building Python modules on MS Windows platform with MinGW `_ + `Building Python modules on MS Windows platform with MinGW `_ Information about building the required libraries for the MinGW environment. diff --git a/Doc/library/random.rst b/Doc/library/random.rst index b9c33af59c8fa7..7cfa2755851e03 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -474,7 +474,7 @@ Example of `statistical bootstrapping `_ using resampling with replacement to estimate a confidence interval for the mean of a sample:: - # http://statistics.about.com/od/Applications/a/Example-Of-Bootstrapping.htm + # https://www.thoughtco.com/example-of-bootstrapping-3126155 from statistics import fmean as mean from random import choices diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index dd7c1ab5c9d1ef..5c0d259ba98986 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1415,7 +1415,7 @@ objects that compare equal might have different :attr:`~range.start`, .. seealso:: - * The `linspace recipe `_ + * The `linspace recipe `_ shows how to implement a lazy version of range suitable for floating point applications. diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index 0447b15e26fe2b..0d2b344d24f269 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -90,7 +90,7 @@ Tcl (see `Threading model`_ for details). Tk - Tk is a `Tcl package `_ implemented in C + Tk is a `Tcl package `_ implemented in C that adds custom commands to create and manipulate GUI widgets. Each :class:`Tk` object embeds its own Tcl interpreter instance with Tk loaded into it. Tk's widgets are very customizable, though at the cost of a dated appearance. diff --git a/Doc/whatsnew/2.3.rst b/Doc/whatsnew/2.3.rst index 745b0aa220502a..55061d2a46bde0 100644 --- a/Doc/whatsnew/2.3.rst +++ b/Doc/whatsnew/2.3.rst @@ -1082,7 +1082,7 @@ Here are all of the changes that Python 2.3 makes to the core Python language. hierarchy. Classic classes are unaffected by this change. Python 2.2 originally used a topological sort of a class's ancestors, but 2.3 now uses the C3 algorithm as described in the paper `"A Monotonic Superclass Linearization - for Dylan" `_. To + for Dylan" `_. To understand the motivation for this change, read Michele Simionato's article `"Python 2.3 Method Resolution Order" `_, or read the thread on python-dev starting with the message at diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst index f580c822dfdd4f..ea785121db90d3 100644 --- a/Doc/whatsnew/2.5.rst +++ b/Doc/whatsnew/2.5.rst @@ -882,7 +882,7 @@ in an :c:type:`int`. The C compilers for most 64-bit platforms still define :c:type:`int` as a 32-bit type, so that meant that lists could only hold up to ``2**31 - 1`` = 2147483647 items. (There are actually a few different programming models that 64-bit C compilers can use -- see -http://www.unix.org/version2/whatsnew/lp64_wp.html for a discussion -- but the +https://unix.org/version2/whatsnew/lp64_wp.html for a discussion -- but the most commonly available model leaves :c:type:`int` as 32 bits.) A limit of 2147483647 items doesn't really matter on a 32-bit platform because diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index eaca3165c07c1b..3d0d18746a21cc 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -155,7 +155,7 @@ up different products and import some of the bugs and patches from SourceForge. Four different trackers were examined: `Jira `__, `Launchpad `__, -`Roundup `__, and +`Roundup `__, and `Trac `__. The committee eventually settled on Jira and Roundup as the two candidates. Jira is a commercial product that @@ -187,7 +187,7 @@ other projects wishing to move from SourceForge to Roundup. https://bugs.jython.org: The Jython bug tracker. - http://roundup.sourceforge.net/ + https://roundup.sourceforge.io/ Roundup downloads and documentation. https://svn.python.org/view/tracker/importer/ @@ -238,7 +238,7 @@ have adopted Sphinx as their documentation tool. `Sphinx `__ Documentation and code for the Sphinx toolchain. - `Docutils `__ + `Docutils `__ The underlying reStructuredText parser and toolset. diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index 43eab642b8f7d4..f474a756b33a90 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -1,6 +1,6 @@ """Test date/time type. -See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases +See https://www.zope.dev/Members/fdrake/DateTimeWiki/TestCases """ import io import itertools diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index ec823ae52c6f95..ce6335cfc42386 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -1,5 +1,5 @@ /* C implementation for the date/time type documented at - * http://www.zope.org/Members/fdrake/DateTimeWiki/FrontPage + * https://www.zope.dev/Members/fdrake/DateTimeWiki/FrontPage */ /* bpo-35081: Defining this prevents including the C API capsule;