Skip to content

Commit 6881ea9

Browse files
authored
bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)
1 parent d8f530f commit 6881ea9

File tree

24 files changed

+28
-29
lines changed

24 files changed

+28
-29
lines changed

Doc/c-api/code.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bound into a function.
5858
If you just need the line number of a frame, use :c:func:`PyFrame_GetLineNumber` instead.
5959
6060
For efficiently iterating over the line numbers in a code object, use `the API described in PEP 626
61-
<https://www.python.org/dev/peps/pep-0626/#out-of-process-debuggers-and-profilers>`_.
61+
<https://peps.python.org/pep-0626/#out-of-process-debuggers-and-profilers>`_.
6262
6363
.. c:function:: int PyCode_Addr2Location(PyObject *co, int byte_offset, int *start_line, int *start_column, int *end_line, int *end_column)
6464

Doc/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,7 @@
218218
# ----------------------------
219219

220220
# Ignore certain URLs.
221-
linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+',
222-
# Ignore PEPs for now, they all have permanent redirects.
223-
r'http://www.python.org/dev/peps/pep-\d+']
221+
linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+']
224222

225223

226224
# Options for extensions

Doc/distutils/sourcedist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Notes:
6262
requires the :program:`compress` program. Notice that this format is now
6363
pending for deprecation and will be removed in the future versions of Python.
6464
(5)
65-
deprecated by `PEP 527 <https://www.python.org/dev/peps/pep-0527/>`_;
65+
deprecated by `PEP 527 <https://peps.python.org/pep-0527/>`_;
6666
`PyPI <https://pypi.org>`_ only accepts ``.zip`` and ``.tar.gz`` files.
6767

6868
When using any ``tar`` format (``gztar``, ``bztar``, ``xztar``, ``ztar`` or

Doc/faq/general.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ The latest stable releases can always be found on the `Python download page
310310
<https://www.python.org/downloads/>`_. There are two production-ready versions
311311
of Python: 2.x and 3.x. The recommended version is 3.x, which is supported by
312312
most widely used libraries. Although 2.x is still widely used, `it is not
313-
maintained anymore <https://www.python.org/dev/peps/pep-0373/>`_.
313+
maintained anymore <https://peps.python.org/pep-0373/>`_.
314314

315315
How many people are using Python?
316316
---------------------------------
@@ -345,7 +345,7 @@ include Google, Yahoo, and Lucasfilm Ltd.
345345
What new developments are expected for Python in the future?
346346
------------------------------------------------------------
347347

348-
See https://www.python.org/dev/peps/ for the Python Enhancement Proposals
348+
See https://peps.python.org/ for the Python Enhancement Proposals
349349
(PEPs). PEPs are design documents describing a suggested new feature for Python,
350350
providing a concise technical specification and a rationale. Look for a PEP
351351
titled "Python X.Y Release Schedule", where X.Y is a version that hasn't been

Doc/library/ast.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ Function and class definitions
18261826
* ``bases`` is a list of nodes for explicitly specified base classes.
18271827
* ``keywords`` is a list of :class:`keyword` nodes, principally for 'metaclass'.
18281828
Other keywords will be passed to the metaclass, as per `PEP-3115
1829-
<https://www.python.org/dev/peps/pep-3115/>`_.
1829+
<https://peps.python.org/pep-3115/>`_.
18301830
* ``starargs`` and ``kwargs`` are each a single node, as in a function call.
18311831
starargs will be expanded to join the list of base classes, and kwargs will
18321832
be passed to the metaclass.

Doc/library/functools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ The :mod:`functools` module defines the following functions:
208208
@lru_cache(maxsize=32)
209209
def get_pep(num):
210210
'Retrieve text of a Python Enhancement Proposal'
211-
resource = 'https://www.python.org/dev/peps/pep-%04d/' % num
211+
resource = 'https://peps.python.org/pep-%04d/' % num
212212
try:
213213
with urllib.request.urlopen(resource) as s:
214214
return s.read()

Doc/library/sqlite3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Module functions and constants
191191
| | | | connections and cursors |
192192
+------------------+-----------------+----------------------+-------------------------------+
193193

194-
.. _threadsafety: https://www.python.org/dev/peps/pep-0249/#threadsafety
194+
.. _threadsafety: https://peps.python.org/pep-0249/#threadsafety
195195
.. _SQLITE_THREADSAFE: https://sqlite.org/compile.html#threadsafe
196196

197197
.. versionchanged:: 3.11

Doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Sphinx version is pinned so that new versions that introduce new warnings
44
# won't suddenly cause build failures. Updating the version is fine as long
55
# as no warnings are raised by doing so.
6-
sphinx==4.2.0
6+
sphinx==4.5.0
77

88
blurb
99

Doc/tools/templates/indexsidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h3>{% trans %}Docs by version{% endtrans %}</h3>
1010
<h3>{% trans %}Other resources{% endtrans %}</h3>
1111
<ul>
1212
{# XXX: many of these should probably be merged in the main docs #}
13-
<li><a href="https://www.python.org/dev/peps/">{% trans %}PEP Index{% endtrans %}</a></li>
13+
<li><a href="https://peps.python.org/">{% trans %}PEP Index{% endtrans %}</a></li>
1414
<li><a href="https://wiki.python.org/moin/BeginnersGuide">{% trans %}Beginner's Guide{% endtrans %}</a></li>
1515
<li><a href="https://wiki.python.org/moin/PythonBooks">{% trans %}Book List{% endtrans %}</a></li>
1616
<li><a href="https://www.python.org/doc/av/">{% trans %}Audio/Visual Talks{% endtrans %}</a></li>

Doc/whatsnew/2.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Guidelines":
130130
Read the rest of :pep:`1` for the details of the PEP editorial process, style, and
131131
format. PEPs are kept in the Python CVS tree on SourceForge, though they're not
132132
part of the Python 2.0 distribution, and are also available in HTML form from
133-
https://www.python.org/dev/peps/. As of September 2000, there are 25 PEPS, ranging
133+
https://peps.python.org/. As of September 2000, there are 25 PEPS, ranging
134134
from :pep:`201`, "Lockstep Iteration", to PEP 225, "Elementwise/Objectwise
135135
Operators".
136136

0 commit comments

Comments
 (0)