summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-03-30 11:00:27 (GMT)
committerGitHub <noreply@github.com>2022-03-30 11:00:27 (GMT)
commit6881ea936e277b1733bee581c4e59e3a5d53bb29 (patch)
tree6e3e42543aeec32f83ccb3592cc05889626e2dde /Lib
parentd8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f (diff)
downloadcpython-6881ea936e277b1733bee581c4e59e3a5d53bb29.zip
cpython-6881ea936e277b1733bee581c4e59e3a5d53bb29.tar.gz
cpython-6881ea936e277b1733bee581c4e59e3a5d53bb29.tar.bz2
bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dataclasses.py2
-rw-r--r--Lib/distutils/command/build_ext.py2
-rwxr-xr-xLib/pydoc.py4
-rw-r--r--Lib/secrets.py2
-rw-r--r--Lib/test/test_docxmlrpc.py4
-rw-r--r--Lib/weakref.py2
-rw-r--r--Lib/xmlrpc/server.py4
7 files changed, 10 insertions, 10 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index 6be7c7b..1acb712 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -298,7 +298,7 @@ class Field:
# This is used to support the PEP 487 __set_name__ protocol in the
# case where we're using a field that contains a descriptor as a
# default value. For details on __set_name__, see
- # https://www.python.org/dev/peps/pep-0487/#implementation-details.
+ # https://peps.python.org/pep-0487/#implementation-details.
#
# Note that in _process_class, this Field object is overwritten
# with the default value, so the end result is a descriptor that
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 1a9bd12..f287b34 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -692,7 +692,7 @@ class build_ext(Command):
suffix = '_' + ext.name.split('.')[-1]
try:
# Unicode module name support as defined in PEP-489
- # https://www.python.org/dev/peps/pep-0489/#export-hook-name
+ # https://peps.python.org/pep-0489/#export-hook-name
suffix.encode('ascii')
except UnicodeEncodeError:
suffix = 'U' + suffix.encode('punycode').replace(b'-', b'_').decode('ascii')
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 18b476e..12c2bb4 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -701,10 +701,10 @@ class HTMLDoc(Doc):
url = escape(all).replace('"', '&quot;')
results.append('<a href="%s">%s</a>' % (url, url))
elif rfc:
- url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
+ url = 'https://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
results.append('<a href="%s">%s</a>' % (url, escape(all)))
elif pep:
- url = 'https://www.python.org/dev/peps/pep-%04d/' % int(pep)
+ url = 'https://peps.python.org/pep-%04d/' % int(pep)
results.append('<a href="%s">%s</a>' % (url, escape(all)))
elif selfdot:
# Create a link for methods like 'self.method(...)'
diff --git a/Lib/secrets.py b/Lib/secrets.py
index a546efb..900381a 100644
--- a/Lib/secrets.py
+++ b/Lib/secrets.py
@@ -2,7 +2,7 @@
managing secrets such as account authentication, tokens, and similar.
See PEP 506 for more information.
-https://www.python.org/dev/peps/pep-0506/
+https://peps.python.org/pep-0506/
"""
diff --git a/Lib/test/test_docxmlrpc.py b/Lib/test/test_docxmlrpc.py
index 89d8009..2ad4220 100644
--- a/Lib/test/test_docxmlrpc.py
+++ b/Lib/test/test_docxmlrpc.py
@@ -146,9 +146,9 @@ class DocXMLRPCHTTPGETServer(unittest.TestCase):
self.assertIn(
(b'<dl><dt><a name="-add"><strong>add</strong></a>(x, y)</dt><dd>'
b'<tt>Add&nbsp;two&nbsp;instances&nbsp;together.&nbsp;This&nbsp;'
- b'follows&nbsp;<a href="https://www.python.org/dev/peps/pep-0008/">'
+ b'follows&nbsp;<a href="https://peps.python.org/pep-0008/">'
b'PEP008</a>,&nbsp;but&nbsp;has&nbsp;nothing<br>\nto&nbsp;do&nbsp;'
- b'with&nbsp;<a href="http://www.rfc-editor.org/rfc/rfc1952.txt">'
+ b'with&nbsp;<a href="https://www.rfc-editor.org/rfc/rfc1952.txt">'
b'RFC1952</a>.&nbsp;Case&nbsp;should&nbsp;matter:&nbsp;pEp008&nbsp;'
b'and&nbsp;rFC1952.&nbsp;&nbsp;Things<br>\nthat&nbsp;start&nbsp;'
b'with&nbsp;http&nbsp;and&nbsp;ftp&nbsp;should&nbsp;be&nbsp;'
diff --git a/Lib/weakref.py b/Lib/weakref.py
index 994ea8a..42aba65 100644
--- a/Lib/weakref.py
+++ b/Lib/weakref.py
@@ -2,7 +2,7 @@
This module is an implementation of PEP 205:
-https://www.python.org/dev/peps/pep-0205/
+https://peps.python.org/pep-0205/
"""
# Naming convention: Variables named "wr" are weak reference objects;
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py
index 4228a85..0c4b558 100644
--- a/Lib/xmlrpc/server.py
+++ b/Lib/xmlrpc/server.py
@@ -731,10 +731,10 @@ class ServerHTMLDoc(pydoc.HTMLDoc):
url = escape(all).replace('"', '&quot;')
results.append('<a href="%s">%s</a>' % (url, url))
elif rfc:
- url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
+ url = 'https://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
results.append('<a href="%s">%s</a>' % (url, escape(all)))
elif pep:
- url = 'https://www.python.org/dev/peps/pep-%04d/' % int(pep)
+ url = 'https://peps.python.org/pep-%04d/' % int(pep)
results.append('<a href="%s">%s</a>' % (url, escape(all)))
elif text[end:end+1] == '(':
results.append(self.namelink(name, methods, funcs, classes))