Skip to content

Commit 437032e

Browse files
gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)
(cherry picked from commit db39050) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent a7a7da4 commit 437032e

24 files changed

+63
-63
lines changed

Doc/about.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These documents are generated from `reStructuredText`_ sources by `Sphinx`_, a
77
document processor specifically written for the Python documentation.
88

99
.. _reStructuredText: https://docutils.sourceforge.io/rst.html
10-
.. _Sphinx: http://sphinx-doc.org/
10+
.. _Sphinx: https://www.sphinx-doc.org/
1111

1212
.. In the online version of these documents, you can submit comments and suggest
1313
changes directly on the documentation pages.

Doc/faq/general.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ at https://docs.python.org/3/. PDF, plain text, and downloadable HTML versions
182182
also available at https://docs.python.org/3/download.html.
183183

184184
The documentation is written in reStructuredText and processed by `the Sphinx
185-
documentation tool <http://sphinx-doc.org/>`__. The reStructuredText source for
185+
documentation tool <https://www.sphinx-doc.org/>`__. The reStructuredText source for
186186
the documentation is part of the Python source distribution.
187187

188188

@@ -270,7 +270,7 @@ Where in the world is www.python.org located?
270270
---------------------------------------------
271271

272272
The Python project's infrastructure is located all over the world and is managed
273-
by the Python Infrastructure Team. Details `here <http://infra.psf.io>`__.
273+
by the Python Infrastructure Team. Details `here <https://infra.psf.io>`__.
274274

275275

276276
Why is it called Python?

Doc/faq/library.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ How do I create documentation from doc strings?
181181
The :mod:`pydoc` module can create HTML from the doc strings in your Python
182182
source code. An alternative for creating API documentation purely from
183183
docstrings is `epydoc <http://epydoc.sourceforge.net/>`_. `Sphinx
184-
<http://sphinx-doc.org>`_ can also include docstring content.
184+
<https://www.sphinx-doc.org>`_ can also include docstring content.
185185
186186
187187
How do I get a single keypress at a time?

Doc/faq/programming.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ use a list comprehension::
12701270
A = [[None] * w for i in range(h)]
12711271

12721272
Or, you can use an extension that provides a matrix datatype; `NumPy
1273-
<http://www.numpy.org/>`_ is the best known.
1273+
<https://numpy.org/>`_ is the best known.
12741274

12751275

12761276
How do I apply a method to a sequence of objects?

Doc/howto/unicode.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ References
517517
518518
Some good alternative discussions of Python's Unicode support are:
519519

520-
* `Processing Text Files in Python 3 <http://python-notes.curiousefficiency.org/en/latest/python3/text_file_processing.html>`_, by Nick Coghlan.
520+
* `Processing Text Files in Python 3 <https://python-notes.curiousefficiency.org/en/latest/python3/text_file_processing.html>`_, by Nick Coghlan.
521521
* `Pragmatic Unicode <https://nedbatchelder.com/text/unipain.html>`_, a PyCon 2012 presentation by Ned Batchelder.
522522

523523
The :class:`str` type is described in the Python library reference at

Doc/library/bisect.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ thoughts in mind:
127127
.. seealso::
128128

129129
* `Sorted Collections
130-
<http://www.grantjenks.com/docs/sortedcollections/>`_ is a high performance
130+
<https://grantjenks.com/docs/sortedcollections/>`_ is a high performance
131131
module that uses *bisect* to managed sorted collections of data.
132132

133133
* The `SortedCollection recipe

Doc/library/decimal.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ reset them before monitoring a calculation.
114114
.. seealso::
115115

116116
* IBM's General Decimal Arithmetic Specification, `The General Decimal Arithmetic
117-
Specification <http://speleotrove.com/decimal/decarith.html>`_.
117+
Specification <https://speleotrove.com/decimal/decarith.html>`_.
118118

119119
.. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
120120

Doc/library/mailbox.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
614614

615615
.. seealso::
616616

617-
`nmh - Message Handling System <http://www.nongnu.org/nmh/>`_
617+
`nmh - Message Handling System <https://www.nongnu.org/nmh/>`_
618618
Home page of :program:`nmh`, an updated version of the original :program:`mh`.
619619

620620
`MH & nmh: Email for Users & Programmers <https://rand-mh.sourceforge.io/book/>`_

Doc/library/multiprocessing.shared_memory.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ instances::
125125

126126

127127
The following example demonstrates a practical use of the :class:`SharedMemory`
128-
class with `NumPy arrays <https://www.numpy.org/>`_, accessing the
128+
class with `NumPy arrays <https://numpy.org/>`_, accessing the
129129
same ``numpy.ndarray`` from two distinct Python shells:
130130

131131
.. doctest::

Doc/library/pickle.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Comparison with ``json``
9090
^^^^^^^^^^^^^^^^^^^^^^^^
9191

9292
There are fundamental differences between the pickle protocols and
93-
`JSON (JavaScript Object Notation) <http://json.org>`_:
93+
`JSON (JavaScript Object Notation) <https://json.org>`_:
9494

9595
* JSON is a text serialization format (it outputs unicode text, although
9696
most of the time it is then encoded to ``utf-8``), while pickle is

Doc/library/random.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,14 @@ Simulation of arrival times and service deliveries for a multiserver queue::
546546
including simulation, sampling, shuffling, and cross-validation.
547547

548548
`Economics Simulation
549-
<http://nbviewer.jupyter.org/url/norvig.com/ipython/Economics.ipynb>`_
549+
<https://nbviewer.jupyter.org/url/norvig.com/ipython/Economics.ipynb>`_
550550
a simulation of a marketplace by
551551
`Peter Norvig <http://norvig.com/bio.html>`_ that shows effective
552552
use of many of the tools and distributions provided by this module
553553
(gauss, uniform, sample, betavariate, choice, triangular, and randrange).
554554

555555
`A Concrete Introduction to Probability (using Python)
556-
<http://nbviewer.jupyter.org/url/norvig.com/ipython/Probability.ipynb>`_
556+
<https://nbviewer.jupyter.org/url/norvig.com/ipython/Probability.ipynb>`_
557557
a tutorial by `Peter Norvig <http://norvig.com/bio.html>`_ covering
558558
the basics of probability theory, how to write simulations, and
559559
how to perform data analysis using Python.

Doc/tutorial/inputoutput.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ becomes complicated.
478478
Rather than having users constantly writing and debugging code to save
479479
complicated data types to files, Python allows you to use the popular data
480480
interchange format called `JSON (JavaScript Object Notation)
481-
<http://json.org>`_. The standard module called :mod:`json` can take Python
481+
<https://json.org>`_. The standard module called :mod:`json` can take Python
482482
data hierarchies, and convert them to string representations; this process is
483483
called :dfn:`serializing`. Reconstructing the data from the string representation
484484
is called :dfn:`deserializing`. Between serializing and deserializing, the

Doc/whatsnew/2.6.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ the time required to finish the job.
217217
During the 2.6 development cycle, Georg Brandl put a lot of effort
218218
into building a new toolchain for processing the documentation. The
219219
resulting package is called Sphinx, and is available from
220-
http://sphinx-doc.org/.
220+
https://www.sphinx-doc.org/.
221221

222222
Sphinx concentrates on HTML output, producing attractively styled and
223223
modern HTML; printed output is still supported through conversion to
@@ -235,7 +235,7 @@ have adopted Sphinx as their documentation tool.
235235
`Documenting Python <https://devguide.python.org/documenting/>`__
236236
Describes how to write for Python's documentation.
237237

238-
`Sphinx <http://sphinx-doc.org/>`__
238+
`Sphinx <https://www.sphinx-doc.org/>`__
239239
Documentation and code for the Sphinx toolchain.
240240

241241
`Docutils <https://docutils.sourceforge.io>`__
@@ -1926,7 +1926,7 @@ changes, or look through the Subversion logs for all the details.
19261926
the left to six places. (Contributed by Skip Montanaro; :issue:`1158`.)
19271927

19281928
* The :mod:`decimal` module was updated to version 1.66 of
1929-
`the General Decimal Specification <http://speleotrove.com/decimal/decarith.html>`__. New features
1929+
`the General Decimal Specification <https://speleotrove.com/decimal/decarith.html>`__. New features
19301930
include some methods for some basic mathematical functions such as
19311931
:meth:`exp` and :meth:`log10`::
19321932

Doc/whatsnew/3.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Major performance enhancements have been added:
451451
* The :mod:`json` module now has a C extension to substantially improve
452452
its performance. In addition, the API was modified so that json works
453453
only with :class:`str`, not with :class:`bytes`. That change makes the
454-
module closely match the `JSON specification <http://json.org/>`_
454+
module closely match the `JSON specification <https://json.org/>`_
455455
which is defined in terms of Unicode.
456456

457457
(Contributed by Bob Ippolito and converted to Py3.1 by Antoine Pitrou

Include/dynamic_annotations.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
Actual implementation of these macros may differ depending on the
4545
dynamic analysis tool being used.
4646
47-
See http://code.google.com/p/data-race-test/ for more information.
47+
See https://code.google.com/p/data-race-test/ for more information.
4848
4949
This file supports the following dynamic analysis tools:
5050
- None (DYNAMIC_ANNOTATIONS_ENABLED is not defined or zero).
@@ -140,7 +140,7 @@
140140
of the mutex's critical sections individually using the annotations above.
141141
This annotation makes sense only for hybrid race detectors. For pure
142142
happens-before detectors this is a no-op. For more details see
143-
http://code.google.com/p/data-race-test/wiki/PureHappensBeforeVsHybrid . */
143+
https://code.google.com/p/data-race-test/wiki/PureHappensBeforeVsHybrid . */
144144
#define _Py_ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(mu) \
145145
AnnotateMutexIsUsedAsCondVar(__FILE__, __LINE__, mu)
146146

Lib/json/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of
1+
r"""JSON (JavaScript Object Notation) <https://json.org> is a subset of
22
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
33
interchange format.
44

Lib/json/decoder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def JSONArray(s_and_end, scan_once, _w=WHITESPACE.match, _ws=WHITESPACE_STR):
252252

253253

254254
class JSONDecoder(object):
255-
"""Simple JSON <http://json.org> decoder
255+
"""Simple JSON <https://json.org> decoder
256256
257257
Performs the following translations in decoding by default:
258258

Lib/json/encoder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def replace(match):
7171
c_encode_basestring_ascii or py_encode_basestring_ascii)
7272

7373
class JSONEncoder(object):
74-
"""Extensible JSON <http://json.org> encoder for Python data structures.
74+
"""Extensible JSON <https://json.org> encoder for Python data structures.
7575
7676
Supports the following objects and types by default:
7777

Lib/test/test_ipaddress.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ def testNth(self):
16531653
self.assertRaises(IndexError, self.ipv6_scoped_network.__getitem__, 1 << 64)
16541654

16551655
def testGetitem(self):
1656-
# http://code.google.com/p/ipaddr-py/issues/detail?id=15
1656+
# https://code.google.com/p/ipaddr-py/issues/detail?id=15
16571657
addr = ipaddress.IPv4Network('172.31.255.128/255.255.255.240')
16581658
self.assertEqual(28, addr.prefixlen)
16591659
addr_list = list(addr)

Lib/test/test_json/test_fail.py

+34-34
Original file line numberDiff line numberDiff line change
@@ -2,73 +2,73 @@
22

33
# 2007-10-05
44
JSONDOCS = [
5-
# http://json.org/JSON_checker/test/fail1.json
5+
# https://json.org/JSON_checker/test/fail1.json
66
'"A JSON payload should be an object or array, not a string."',
7-
# http://json.org/JSON_checker/test/fail2.json
7+
# https://json.org/JSON_checker/test/fail2.json
88
'["Unclosed array"',
9-
# http://json.org/JSON_checker/test/fail3.json
9+
# https://json.org/JSON_checker/test/fail3.json
1010
'{unquoted_key: "keys must be quoted"}',
11-
# http://json.org/JSON_checker/test/fail4.json
11+
# https://json.org/JSON_checker/test/fail4.json
1212
'["extra comma",]',
13-
# http://json.org/JSON_checker/test/fail5.json
13+
# https://json.org/JSON_checker/test/fail5.json
1414
'["double extra comma",,]',
15-
# http://json.org/JSON_checker/test/fail6.json
15+
# https://json.org/JSON_checker/test/fail6.json
1616
'[ , "<-- missing value"]',
17-
# http://json.org/JSON_checker/test/fail7.json
17+
# https://json.org/JSON_checker/test/fail7.json
1818
'["Comma after the close"],',
19-
# http://json.org/JSON_checker/test/fail8.json
19+
# https://json.org/JSON_checker/test/fail8.json
2020
'["Extra close"]]',
21-
# http://json.org/JSON_checker/test/fail9.json
21+
# https://json.org/JSON_checker/test/fail9.json
2222
'{"Extra comma": true,}',
23-
# http://json.org/JSON_checker/test/fail10.json
23+
# https://json.org/JSON_checker/test/fail10.json
2424
'{"Extra value after close": true} "misplaced quoted value"',
25-
# http://json.org/JSON_checker/test/fail11.json
25+
# https://json.org/JSON_checker/test/fail11.json
2626
'{"Illegal expression": 1 + 2}',
27-
# http://json.org/JSON_checker/test/fail12.json
27+
# https://json.org/JSON_checker/test/fail12.json
2828
'{"Illegal invocation": alert()}',
29-
# http://json.org/JSON_checker/test/fail13.json
29+
# https://json.org/JSON_checker/test/fail13.json
3030
'{"Numbers cannot have leading zeroes": 013}',
31-
# http://json.org/JSON_checker/test/fail14.json
31+
# https://json.org/JSON_checker/test/fail14.json
3232
'{"Numbers cannot be hex": 0x14}',
33-
# http://json.org/JSON_checker/test/fail15.json
33+
# https://json.org/JSON_checker/test/fail15.json
3434
'["Illegal backslash escape: \\x15"]',
35-
# http://json.org/JSON_checker/test/fail16.json
35+
# https://json.org/JSON_checker/test/fail16.json
3636
'[\\naked]',
37-
# http://json.org/JSON_checker/test/fail17.json
37+
# https://json.org/JSON_checker/test/fail17.json
3838
'["Illegal backslash escape: \\017"]',
39-
# http://json.org/JSON_checker/test/fail18.json
39+
# https://json.org/JSON_checker/test/fail18.json
4040
'[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]',
41-
# http://json.org/JSON_checker/test/fail19.json
41+
# https://json.org/JSON_checker/test/fail19.json
4242
'{"Missing colon" null}',
43-
# http://json.org/JSON_checker/test/fail20.json
43+
# https://json.org/JSON_checker/test/fail20.json
4444
'{"Double colon":: null}',
45-
# http://json.org/JSON_checker/test/fail21.json
45+
# https://json.org/JSON_checker/test/fail21.json
4646
'{"Comma instead of colon", null}',
47-
# http://json.org/JSON_checker/test/fail22.json
47+
# https://json.org/JSON_checker/test/fail22.json
4848
'["Colon instead of comma": false]',
49-
# http://json.org/JSON_checker/test/fail23.json
49+
# https://json.org/JSON_checker/test/fail23.json
5050
'["Bad value", truth]',
51-
# http://json.org/JSON_checker/test/fail24.json
51+
# https://json.org/JSON_checker/test/fail24.json
5252
"['single quote']",
53-
# http://json.org/JSON_checker/test/fail25.json
53+
# https://json.org/JSON_checker/test/fail25.json
5454
'["\ttab\tcharacter\tin\tstring\t"]',
55-
# http://json.org/JSON_checker/test/fail26.json
55+
# https://json.org/JSON_checker/test/fail26.json
5656
'["tab\\ character\\ in\\ string\\ "]',
57-
# http://json.org/JSON_checker/test/fail27.json
57+
# https://json.org/JSON_checker/test/fail27.json
5858
'["line\nbreak"]',
59-
# http://json.org/JSON_checker/test/fail28.json
59+
# https://json.org/JSON_checker/test/fail28.json
6060
'["line\\\nbreak"]',
61-
# http://json.org/JSON_checker/test/fail29.json
61+
# https://json.org/JSON_checker/test/fail29.json
6262
'[0e]',
63-
# http://json.org/JSON_checker/test/fail30.json
63+
# https://json.org/JSON_checker/test/fail30.json
6464
'[0e+]',
65-
# http://json.org/JSON_checker/test/fail31.json
65+
# https://json.org/JSON_checker/test/fail31.json
6666
'[0e+-1]',
67-
# http://json.org/JSON_checker/test/fail32.json
67+
# https://json.org/JSON_checker/test/fail32.json
6868
'{"Comma instead if closing brace": true,',
69-
# http://json.org/JSON_checker/test/fail33.json
69+
# https://json.org/JSON_checker/test/fail33.json
7070
'["mismatch"}',
71-
# http://code.google.com/p/simplejson/issues/detail?id=3
71+
# https://code.google.com/archive/p/simplejson/issues/3
7272
'["A\u001FZ control characters in string"]',
7373
]
7474

Lib/test/test_json/test_pass1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test.test_json import PyTest, CTest
22

33

4-
# from http://json.org/JSON_checker/test/pass1.json
4+
# from https://json.org/JSON_checker/test/pass1.json
55
JSON = r'''
66
[
77
"JSON Test Pattern pass1",

Lib/test/test_json/test_pass2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test.test_json import PyTest, CTest
22

33

4-
# from http://json.org/JSON_checker/test/pass2.json
4+
# from https://json.org/JSON_checker/test/pass2.json
55
JSON = r'''
66
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
77
'''

Lib/test/test_json/test_pass3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test.test_json import PyTest, CTest
22

33

4-
# from http://json.org/JSON_checker/test/pass3.json
4+
# from https://json.org/JSON_checker/test/pass3.json
55
JSON = r'''
66
{
77
"JSON Test Pattern pass3": {

Lib/wsgiref/validate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
2-
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
3-
# Also licenced under the Apache License, 2.0: http://opensource.org/licenses/apache2.0.php
2+
# Licensed under the MIT license: https://opensource.org/licenses/mit-license.php
3+
# Also licenced under the Apache License, 2.0: https://opensource.org/licenses/apache2.0.php
44
# Licensed to PSF under a Contributor Agreement
55
"""
66
Middleware to check for obedience to the WSGI specification.

0 commit comments

Comments
 (0)