diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-08-04 07:13:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 07:13:49 (GMT) |
commit | f79547a429d5c90af83a0da821e082cba20d4712 (patch) | |
tree | 529f0f5c398d524e7ae54685fb22100ab2914b8f /Doc/library | |
parent | bcc74d509a3bd7e4fdc658179ae6d77614d1fd36 (diff) | |
download | cpython-f79547a429d5c90af83a0da821e082cba20d4712.zip cpython-f79547a429d5c90af83a0da821e082cba20d4712.tar.gz cpython-f79547a429d5c90af83a0da821e082cba20d4712.tar.bz2 |
gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (GH-95527)
If an HTTP link is redirected to a same looking HTTPS link, the latter can
be used directly without changes in readability and behavior.
It protects from a men-in-the-middle attack.
This change does not affect Python examples.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/collections.rst | 2 | ||||
-rw-r--r-- | Doc/library/difflib.rst | 4 | ||||
-rw-r--r-- | Doc/library/gettext.rst | 2 | ||||
-rw-r--r-- | Doc/library/http.client.rst | 2 | ||||
-rw-r--r-- | Doc/library/importlib.resources.rst | 6 | ||||
-rw-r--r-- | Doc/library/json.rst | 4 | ||||
-rw-r--r-- | Doc/library/os.path.rst | 2 | ||||
-rw-r--r-- | Doc/library/os.rst | 6 | ||||
-rw-r--r-- | Doc/library/random.rst | 2 | ||||
-rw-r--r-- | Doc/library/secrets.rst | 2 | ||||
-rw-r--r-- | Doc/library/shutil.rst | 2 | ||||
-rw-r--r-- | Doc/library/socket.rst | 2 | ||||
-rw-r--r-- | Doc/library/statistics.rst | 2 | ||||
-rw-r--r-- | Doc/library/string.rst | 2 | ||||
-rw-r--r-- | Doc/library/sys.rst | 2 | ||||
-rw-r--r-- | Doc/library/tkinter.rst | 4 | ||||
-rw-r--r-- | Doc/library/xmlrpc.client.rst | 4 |
17 files changed, 25 insertions, 25 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 67b64dd..2086383 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -664,7 +664,7 @@ added elements by appending to the right and popping to the left:: def moving_average(iterable, n=3): # moving_average([40, 30, 50, 46, 39, 44]) --> 40.0 42.0 45.0 43.0 - # http://en.wikipedia.org/wiki/Moving_average + # https://en.wikipedia.org/wiki/Moving_average it = iter(iterable) d = deque(itertools.islice(it, n-1)) d.appendleft(0) diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 87c3860..c5a2796 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -353,9 +353,9 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module. .. seealso:: - `Pattern Matching: The Gestalt Approach <http://www.drdobbs.com/database/pattern-matching-the-gestalt-approach/184407970>`_ + `Pattern Matching: The Gestalt Approach <https://www.drdobbs.com/database/pattern-matching-the-gestalt-approach/184407970>`_ Discussion of a similar algorithm by John W. Ratcliff and D. E. Metzener. This - was published in `Dr. Dobb's Journal <http://www.drdobbs.com/>`_ in July, 1988. + was published in `Dr. Dobb's Journal <https://www.drdobbs.com/>`_ in July, 1988. .. _sequence-matcher: diff --git a/Doc/library/gettext.rst b/Doc/library/gettext.rst index 6245019..747f870 100644 --- a/Doc/library/gettext.rst +++ b/Doc/library/gettext.rst @@ -445,7 +445,7 @@ There are a few tools to extract the strings meant for translation. The original GNU :program:`gettext` only supported C or C++ source code but its extended version :program:`xgettext` scans code written in a number of languages, including Python, to find strings marked as -translatable. `Babel <http://babel.pocoo.org/>`__ is a Python +translatable. `Babel <https://babel.pocoo.org/>`__ is a Python internationalization library that includes a :file:`pybabel` script to extract and compile message catalogs. François Pinard's program called :program:`xpot` does a similar job and is available as part of diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 8bb3187..16823ec 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -591,7 +591,7 @@ Here is an example session that shows how to ``POST`` requests:: 302 Found >>> data = response.read() >>> data - b'Redirecting to <a href="http://bugs.python.org/issue12524">http://bugs.python.org/issue12524</a>' + b'Redirecting to <a href="https://bugs.python.org/issue12524">https://bugs.python.org/issue12524</a>' >>> conn.close() Client side ``HTTP PUT`` requests are very similar to ``POST`` requests. The diff --git a/Doc/library/importlib.resources.rst b/Doc/library/importlib.resources.rst index d367dce..827e7d8 100644 --- a/Doc/library/importlib.resources.rst +++ b/Doc/library/importlib.resources.rst @@ -26,16 +26,16 @@ for example, a package and its resources can be imported from a zip file using This module provides functionality similar to `pkg_resources <https://setuptools.readthedocs.io/en/latest/pkg_resources.html>`_ `Basic Resource Access - <http://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access>`_ + <https://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access>`_ without the performance overhead of that package. This makes reading resources included in packages easier, with more stable and consistent semantics. The standalone backport of this module provides more information on `using importlib.resources - <http://importlib-resources.readthedocs.io/en/latest/using.html>`_ and + <https://importlib-resources.readthedocs.io/en/latest/using.html>`_ and `migrating from pkg_resources to importlib.resources - <http://importlib-resources.readthedocs.io/en/latest/migration.html>`_. + <https://importlib-resources.readthedocs.io/en/latest/migration.html>`_. :class:`Loaders <importlib.abc.Loader>` that wish to support resource reading should implement a ``get_resource_reader(fullname)`` method as specified by diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 1e20324..f65be85 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -226,7 +226,7 @@ Basic Usage *object_hook* is an optional function that will be called with the result of any object literal decoded (a :class:`dict`). The return value of *object_hook* will be used instead of the :class:`dict`. This feature can be used - to implement custom decoders (e.g. `JSON-RPC <http://www.jsonrpc.org>`_ + to implement custom decoders (e.g. `JSON-RPC <https://www.jsonrpc.org>`_ class hinting). *object_pairs_hook* is an optional function that will be called with the @@ -326,7 +326,7 @@ Encoders and Decoders *object_hook*, if specified, will be called with the result of every JSON object decoded and its return value will be used in place of the given :class:`dict`. This can be used to provide custom deserializations (e.g. to - support `JSON-RPC <http://www.jsonrpc.org>`_ class hinting). + support `JSON-RPC <https://www.jsonrpc.org>`_ class hinting). *object_pairs_hook*, if specified will be called with the result of every JSON object decoded with an ordered list of pairs. The return value of diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 85989ef..7c35f3c 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -335,7 +335,7 @@ the :mod:`glob` module.) .. note:: On POSIX systems, in accordance with `IEEE Std 1003.1 2013 Edition; 4.13 - Pathname Resolution <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>`_, + Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>`_, if a pathname begins with exactly two slashes, the first component following the leading characters may be interpreted in an implementation-defined manner, although more than two leading characters shall be treated as a diff --git a/Doc/library/os.rst b/Doc/library/os.rst index e5555c2..eb15463 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2518,9 +2518,9 @@ features: .. note:: On Unix-based systems, :func:`scandir` uses the system's - `opendir() <http://pubs.opengroup.org/onlinepubs/009695399/functions/opendir.html>`_ + `opendir() <https://pubs.opengroup.org/onlinepubs/009695399/functions/opendir.html>`_ and - `readdir() <http://pubs.opengroup.org/onlinepubs/009695399/functions/readdir_r.html>`_ + `readdir() <https://pubs.opengroup.org/onlinepubs/009695399/functions/readdir_r.html>`_ functions. On Windows, it uses the Win32 `FindFirstFileW <https://msdn.microsoft.com/en-us/library/windows/desktop/aa364418(v=vs.85).aspx>`_ and @@ -4989,7 +4989,7 @@ Random numbers :py:data:`GRND_NONBLOCK`. See also the `Linux getrandom() manual page - <http://man7.org/linux/man-pages/man2/getrandom.2.html>`_. + <https://man7.org/linux/man-pages/man2/getrandom.2.html>`_. .. availability:: Linux >= 3.17. diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 78c2b03..9130400 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -266,7 +266,7 @@ The following function generates a discrete distribution. .. function:: binomialvariate(n=1, p=0.5) `Binomial distribution - <http://mathworld.wolfram.com/BinomialDistribution.html>`_. + <https://mathworld.wolfram.com/BinomialDistribution.html>`_. Return the number of successes for *n* independent trials with the probability of success in each trial being *p*: diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst index 86fa35f..dc8e5f4 100644 --- a/Doc/library/secrets.rst +++ b/Doc/library/secrets.rst @@ -153,7 +153,7 @@ Generate an eight-character alphanumeric password: .. note:: Applications should not - `store passwords in a recoverable format <http://cwe.mitre.org/data/definitions/257.html>`_, + `store passwords in a recoverable format <https://cwe.mitre.org/data/definitions/257.html>`_, whether plain text or encrypted. They should be salted and hashed using a cryptographically strong one-way (irreversible) hash function. diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 7d69c5f..8f1668f 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -801,4 +801,4 @@ Querying the size of the output terminal http://www.manpagez.com/man/3/copyfile/ .. _`Other Environment Variables`: - http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html#tag_002_003 + https://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html#tag_002_003 diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index b2bb8c7..f97c4f6 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -370,7 +370,7 @@ Constants .. seealso:: - `Secure File Descriptor Handling <http://udrepper.livejournal.com/20407.html>`_ + `Secure File Descriptor Handling <https://udrepper.livejournal.com/20407.html>`_ for a more thorough explanation. .. availability:: Linux >= 2.6.27. diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 5aef6f6..bf86990 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -938,7 +938,7 @@ Carlo simulation <https://en.wikipedia.org/wiki/Monte_Carlo_method>`_: [1.4591308524824727, 1.8035946855390597, 2.175091447274739] Normal distributions can be used to approximate `Binomial -distributions <http://mathworld.wolfram.com/BinomialDistribution.html>`_ +distributions <https://mathworld.wolfram.com/BinomialDistribution.html>`_ when the sample size is large and when the probability of a successful trial is near 50%. diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 35e9bc1..7d0d601 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -738,7 +738,7 @@ internationalization (i18n) since in that context, the simpler syntax and functionality makes it easier to translate than other built-in string formatting facilities in Python. As an example of a library built on template strings for i18n, see the -`flufl.i18n <http://flufli18n.readthedocs.io/en/latest/>`_ package. +`flufl.i18n <https://flufli18n.readthedocs.io/en/latest/>`_ package. .. index:: single: $ (dollar); in template strings diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 632ce62..43db4ba 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1799,4 +1799,4 @@ always available. .. rubric:: Citations -.. [C99] ISO/IEC 9899:1999. "Programming languages -- C." A public draft of this standard is available at http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf\ . +.. [C99] ISO/IEC 9899:1999. "Programming languages -- C." A public draft of this standard is available at https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf\ . diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index 096a343..0447b15 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -61,7 +61,7 @@ details that are unchanged. * `Python and Tkinter Programming <https://www.packtpub.com/product/python-gui-programming-with-tkinter/9781788835886>`_ By Alan Moore. (ISBN 978-1788835886) - * `Programming Python <http://learning-python.com/about-pp4e.html>`_ + * `Programming Python <https://learning-python.com/about-pp4e.html>`_ By Mark Lutz; has excellent coverage of Tkinter. (ISBN 978-0596158101) * `Tcl and the Tk Toolkit (2nd edition) <https://www.amazon.com/exec/obidos/ASIN/032133633X>`_ @@ -988,7 +988,7 @@ wherever the image was used. .. seealso:: - The `Pillow <http://python-pillow.org/>`_ package adds support for + The `Pillow <https://python-pillow.org/>`_ package adds support for formats such as BMP, JPEG, TIFF, and WebP, among others. .. _tkinter-file-handlers: diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst index 9f5ba46..2dcf398 100644 --- a/Doc/library/xmlrpc.client.rst +++ b/Doc/library/xmlrpc.client.rst @@ -156,12 +156,12 @@ between conformable Python objects and XML on the wire. Added support of unmarshalling additional types used by Apache XML-RPC implementation for numerics: ``i1``, ``i2``, ``i8``, ``biginteger``, ``float`` and ``bigdecimal``. - See http://ws.apache.org/xmlrpc/types.html for a description. + See https://ws.apache.org/xmlrpc/types.html for a description. .. seealso:: - `XML-RPC HOWTO <http://www.tldp.org/HOWTO/XML-RPC-HOWTO/index.html>`_ + `XML-RPC HOWTO <https://www.tldp.org/HOWTO/XML-RPC-HOWTO/index.html>`_ A good description of XML-RPC operation and client software in several languages. Contains pretty much everything an XML-RPC client developer needs to know. |