Skip to content

Commit d8df7e0

Browse files
[3.11] gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (GH-95527) (GH-95643)
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.. (cherry picked from commit f79547a) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 390c80d commit d8df7e0

39 files changed

+71
-71
lines changed

.github/CONTRIBUTING.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ Build Status
66

77
- main
88

9-
+ `Stable buildbots <http://buildbot.python.org/3.x.stable/>`_
9+
+ `Stable buildbots <https://buildbot.python.org/3.x.stable/>`_
1010

1111
- 3.9
1212

13-
+ `Stable buildbots <http://buildbot.python.org/3.9.stable/>`_
13+
+ `Stable buildbots <https://buildbot.python.org/3.9.stable/>`_
1414

1515
- 3.8
1616

17-
+ `Stable buildbots <http://buildbot.python.org/3.8.stable/>`_
17+
+ `Stable buildbots <https://buildbot.python.org/3.8.stable/>`_
1818

1919
- 3.7
2020

21-
+ `Stable buildbots <http://buildbot.python.org/3.7.stable/>`_
21+
+ `Stable buildbots <https://buildbot.python.org/3.7.stable/>`_
2222

2323

2424
Thank You

Doc/extending/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Recommended third party tools
2727

2828
This guide only covers the basic tools for creating extensions provided
2929
as part of this version of CPython. Third party tools like
30-
`Cython <http://cython.org/>`_, `cffi <https://cffi.readthedocs.io>`_,
31-
`SWIG <http://www.swig.org>`_ and `Numba <https://numba.pydata.org/>`_
30+
`Cython <https://cython.org/>`_, `cffi <https://cffi.readthedocs.io>`_,
31+
`SWIG <https://www.swig.org>`_ and `Numba <https://numba.pydata.org/>`_
3232
offer both simpler and more sophisticated approaches to creating C and C++
3333
extensions for Python.
3434

Doc/faq/design.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ is exactly the same type of object that a lambda expression yields) is assigned!
321321
Can Python be compiled to machine code, C or some other language?
322322
-----------------------------------------------------------------
323323

324-
`Cython <http://cython.org/>`_ compiles a modified version of Python with
325-
optional annotations into C extensions. `Nuitka <http://www.nuitka.net/>`_ is
324+
`Cython <https://cython.org/>`_ compiles a modified version of Python with
325+
optional annotations into C extensions. `Nuitka <https://www.nuitka.net/>`_ is
326326
an up-and-coming compiler of Python into C++ code, aiming to support the full
327327
Python language.
328328

@@ -338,8 +338,8 @@ cycles and deletes the objects involved. The :mod:`gc` module provides functions
338338
to perform a garbage collection, obtain debugging statistics, and tune the
339339
collector's parameters.
340340

341-
Other implementations (such as `Jython <http://www.jython.org>`_ or
342-
`PyPy <http://www.pypy.org>`_), however, can rely on a different mechanism
341+
Other implementations (such as `Jython <https://www.jython.org>`_ or
342+
`PyPy <https://www.pypy.org>`_), however, can rely on a different mechanism
343343
such as a full-blown garbage collector. This difference can cause some
344344
subtle porting problems if your Python code depends on the behavior of the
345345
reference counting implementation.

Doc/faq/extending.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ on what you're trying to do.
4141

4242
.. XXX make sure these all work
4343
44-
`Cython <http://cython.org>`_ and its relative `Pyrex
44+
`Cython <https://cython.org>`_ and its relative `Pyrex
4545
<https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/>`_ are compilers
4646
that accept a slightly modified form of Python and generate the corresponding
4747
C code. Cython and Pyrex make it possible to write an extension without having
4848
to learn Python's C API.
4949

5050
If you need to interface to some C or C++ library for which no Python extension
5151
currently exists, you can try wrapping the library's data types and functions
52-
with a tool such as `SWIG <http://www.swig.org>`_. `SIP
52+
with a tool such as `SWIG <https://www.swig.org>`_. `SIP
5353
<https://riverbankcomputing.com/software/sip/intro>`__, `CXX
5454
<http://cxx.sourceforge.net/>`_ `Boost
55-
<http://www.boost.org/libs/python/doc/index.html>`_, or `Weave
55+
<https://www.boost.org/libs/python/doc/index.html>`_, or `Weave
5656
<https://github.com/scipy/weave>`_ are also
5757
alternatives for wrapping C++ libraries.
5858

@@ -286,6 +286,6 @@ Can I create an object class with some methods implemented in C and others in Py
286286
Yes, you can inherit from built-in classes such as :class:`int`, :class:`list`,
287287
:class:`dict`, etc.
288288

289-
The Boost Python Library (BPL, http://www.boost.org/libs/python/doc/index.html)
289+
The Boost Python Library (BPL, https://www.boost.org/libs/python/doc/index.html)
290290
provides a way of doing this from C++ (i.e. you can inherit from an extension
291291
class written in C++ using the BPL).

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ performance levels:
10661066
detrimental to readability).
10671067

10681068
If you have reached the limit of what pure Python can allow, there are tools
1069-
to take you further away. For example, `Cython <http://cython.org>`_ can
1069+
to take you further away. For example, `Cython <https://cython.org>`_ can
10701070
compile a slightly modified version of Python code into a C extension, and
10711071
can be used on many different platforms. Cython can take advantage of
10721072
compilation (and optional type annotations) to make your code significantly

Doc/howto/cporting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ We recommend the following resources for porting extension modules to Python 3:
2222

2323
.. _Migrating C extensions: http://python3porting.com/cextensions.html
2424
.. _Porting guide: https://py3c.readthedocs.io/en/latest/guide.html
25-
.. _Cython: http://cython.org/
25+
.. _Cython: https://cython.org/
2626
.. _CFFI: https://cffi.readthedocs.io/en/latest/

Doc/howto/curses.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ Patches adding support for these would be welcome; see
536536
`the Python Developer's Guide <https://devguide.python.org/>`_ to
537537
learn more about submitting patches to Python.
538538

539-
* `Writing Programs with NCURSES <http://invisible-island.net/ncurses/ncurses-intro.html>`_:
539+
* `Writing Programs with NCURSES <https://invisible-island.net/ncurses/ncurses-intro.html>`_:
540540
a lengthy tutorial for C programmers.
541541
* `The ncurses man page <https://linux.die.net/man/3/ncurses>`_
542-
* `The ncurses FAQ <http://invisible-island.net/ncurses/ncurses.faq.html>`_
542+
* `The ncurses FAQ <https://invisible-island.net/ncurses/ncurses.faq.html>`_
543543
* `"Use curses... don't swear" <https://www.youtube.com/watch?v=eN1eZtjLEnU>`_:
544544
video of a PyCon 2013 talk on controlling terminals using curses or Urwid.
545545
* `"Console Applications with Urwid" <http://www.pyvideo.org/video/1568/console-applications-with-urwid>`_:

Doc/howto/functional.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ flow inside a program. The book uses Scheme for its examples, but many of the
12151215
design approaches described in these chapters are applicable to functional-style
12161216
Python code.
12171217

1218-
http://www.defmacro.org/ramblings/fp.html: A general introduction to functional
1218+
https://www.defmacro.org/ramblings/fp.html: A general introduction to functional
12191219
programming that uses Java examples and has a lengthy historical introduction.
12201220

12211221
https://en.wikipedia.org/wiki/Functional_programming: General Wikipedia entry
@@ -1228,7 +1228,7 @@ https://en.wikipedia.org/wiki/Currying: Entry for the concept of currying.
12281228
Python-specific
12291229
---------------
12301230

1231-
http://gnosis.cx/TPiP/: The first chapter of David Mertz's book
1231+
https://gnosis.cx/TPiP/: The first chapter of David Mertz's book
12321232
:title-reference:`Text Processing in Python` discusses functional programming
12331233
for text processing, in the section titled "Utilizing Higher-Order Functions in
12341234
Text Processing".

Doc/howto/pyporting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ to make sure everything functions as expected in both versions of Python.
433433

434434

435435
.. _caniusepython3: https://pypi.org/project/caniusepython3
436-
.. _cheat sheet: http://python-future.org/compatible_idioms.html
436+
.. _cheat sheet: https://python-future.org/compatible_idioms.html
437437
.. _coverage.py: https://pypi.org/project/coverage
438-
.. _Futurize: http://python-future.org/automatic_conversion.html
438+
.. _Futurize: https://python-future.org/automatic_conversion.html
439439
.. _importlib2: https://pypi.org/project/importlib2
440440
.. _Modernize: https://python-modernize.readthedocs.io/
441441
.. _mypy: http://mypy-lang.org/
@@ -445,7 +445,7 @@ to make sure everything functions as expected in both versions of Python.
445445
.. _Python 3 Q & A: https://ncoghlan-devs-python-notes.readthedocs.io/en/latest/python3/questions_and_answers.html
446446

447447
.. _pytype: https://github.com/google/pytype
448-
.. _python-future: http://python-future.org/
448+
.. _python-future: https://python-future.org/
449449
.. _python-porting: https://mail.python.org/pipermail/python-porting/
450450
.. _six: https://pypi.org/project/six
451451
.. _tox: https://pypi.org/project/tox

Doc/howto/unicode.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ On the Computerphile Youtube channel, Tom Scott briefly
167167
(9 minutes 36 seconds).
168168

169169
To help understand the standard, Jukka Korpela has written `an introductory
170-
guide <http://jkorpela.fi/unicode/guide.html>`_ to reading the
170+
guide <https://jkorpela.fi/unicode/guide.html>`_ to reading the
171171
Unicode character tables.
172172

173173
Another `good introductory article <https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/>`_
@@ -735,7 +735,7 @@ References
735735
----------
736736

737737
One section of `Mastering Python 3 Input/Output
738-
<http://pyvideo.org/video/289/pycon-2010--mastering-python-3-i-o>`_,
738+
<https://pyvideo.org/video/289/pycon-2010--mastering-python-3-i-o>`_,
739739
a PyCon 2010 talk by David Beazley, discusses text processing and binary data handling.
740740

741741
The `PDF slides for Marc-André Lemburg's presentation "Writing Unicode-aware
@@ -745,7 +745,7 @@ discuss questions of character encodings as well as how to internationalize
745745
and localize an application. These slides cover Python 2.x only.
746746

747747
`The Guts of Unicode in Python
748-
<http://pyvideo.org/video/1768/the-guts-of-unicode-in-python>`_
748+
<https://pyvideo.org/video/1768/the-guts-of-unicode-in-python>`_
749749
is a PyCon 2013 talk by Benjamin Peterson that discusses the internal Unicode
750750
representation in Python 3.3.
751751

0 commit comments

Comments
 (0)