From 42f88f1ce2062ec49db8e07c8b79d7ed62c1bfbc Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Sun, 27 Feb 2022 22:46:36 +0000 Subject: [PATCH] Display list names in Resolution and Discussions-To headers (#2361) --- pep-0256.txt | 2 +- pep-0258.txt | 2 +- pep-0287.txt | 2 +- pep-0305.txt | 2 +- pep-0333.txt | 2 +- pep-0345.txt | 2 +- pep-0347.txt | 2 +- pep-0390.txt | 2 +- pep-0423.txt | 2 +- pep-0426.txt | 2 +- pep-0427.txt | 2 +- pep-0436.txt | 2 +- pep-0439.txt | 2 +- pep-0440.txt | 2 +- pep-0443.txt | 2 +- pep-0444.txt | 2 +- pep-0457.txt | 2 +- pep-0459.txt | 2 +- pep-0480.txt | 2 +- pep-0482.txt | 2 +- pep-0483.txt | 2 +- pep-0484.txt | 2 +- pep-0491.txt | 2 +- pep-0492.txt | 2 +- pep-0495.txt | 2 +- pep-0500.txt | 2 +- pep-0508.txt | 2 +- pep-0513.txt | 2 +- pep-0516.txt | 2 +- pep-0517.txt | 2 +- pep-0518.txt | 2 +- pep-0525.txt | 2 +- pep-0530.txt | 2 +- pep-0541.txt | 2 +- pep-0544.txt | 2 +- pep-0549.rst | 2 +- pep-0558.rst | 2 +- pep-0563.rst | 2 +- pep-0566.rst | 2 +- pep-0571.rst | 2 +- pep-0581.rst | 2 +- pep-0585.rst | 2 +- pep-0586.rst | 2 +- pep-0588.rst | 2 +- pep-0600.rst | 2 +- pep-0612.rst | 2 +- pep-0617.rst | 2 +- pep-0622.rst | 2 +- pep-0634.rst | 2 +- pep-0635.rst | 2 +- pep-0636.rst | 2 +- pep-0642.rst | 2 +- pep-0647.rst | 2 +- pep-0673.rst | 2 +- pep-3124.txt | 2 +- pep-3127.txt | 2 +- pep-3128.txt | 2 +- pep-3144.txt | 2 +- pep-3156.txt | 2 +- pep-3333.txt | 2 +- .../pep_processor/transforms/pep_headers.py | 41 ++++++++++--------- .../pep_processor/transforms/pep_zero.py | 5 +-- 62 files changed, 82 insertions(+), 84 deletions(-) diff --git a/pep-0256.txt b/pep-0256.txt index c0b72e273..9e9a66e27 100644 --- a/pep-0256.txt +++ b/pep-0256.txt @@ -3,7 +3,7 @@ Title: Docstring Processing System Framework Version: $Revision$ Last-Modified: $Date$ Author: David Goodger -Discussions-To: +Discussions-To: doc-sig@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0258.txt b/pep-0258.txt index ac925e264..4f793a016 100644 --- a/pep-0258.txt +++ b/pep-0258.txt @@ -3,7 +3,7 @@ Title: Docutils Design Specification Version: $Revision$ Last-Modified: $Date$ Author: David Goodger -Discussions-To: +Discussions-To: doc-sig@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0287.txt b/pep-0287.txt index 1fdaa21c9..7bdf6e5d0 100644 --- a/pep-0287.txt +++ b/pep-0287.txt @@ -3,7 +3,7 @@ Title: reStructuredText Docstring Format Version: $Revision$ Last-Modified: $Date$ Author: David Goodger -Discussions-To: +Discussions-To: doc-sig@python.org Status: Active Type: Informational Content-Type: text/x-rst diff --git a/pep-0305.txt b/pep-0305.txt index c86a68130..3e82d8190 100644 --- a/pep-0305.txt +++ b/pep-0305.txt @@ -7,7 +7,7 @@ Author: Kevin Altis , Andrew McNamara , Skip Montanaro , Cliff Wells -Discussions-To: +Discussions-To: csv@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0333.txt b/pep-0333.txt index 5372f2ab3..d0c6e8377 100644 --- a/pep-0333.txt +++ b/pep-0333.txt @@ -3,7 +3,7 @@ Title: Python Web Server Gateway Interface v1.0 Version: $Revision$ Last-Modified: $Date$ Author: Phillip J. Eby -Discussions-To: Python Web-SIG +Discussions-To: web-sig@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep-0345.txt b/pep-0345.txt index 0643ecfeb..e9cd3b243 100644 --- a/pep-0345.txt +++ b/pep-0345.txt @@ -3,7 +3,7 @@ Title: Metadata for Python Software Packages 1.2 Version: $Revision$ Last-Modified: $Date$ Author: Richard Jones -Discussions-To: Distutils SIG +Discussions-To: distutils-sig@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0347.txt b/pep-0347.txt index 59099edc1..8445bd2c5 100644 --- a/pep-0347.txt +++ b/pep-0347.txt @@ -3,7 +3,7 @@ Title: Migrating the Python CVS to Subversion Version: $Revision$ Last-Modified: $Date$ Author: Martin von Löwis -Discussions-To: +Discussions-To: python-dev@python.org Status: Final Type: Process Content-Type: text/x-rst diff --git a/pep-0390.txt b/pep-0390.txt index 5ad1bdf38..536abc864 100644 --- a/pep-0390.txt +++ b/pep-0390.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Tarek Ziadé BDFL-Delegate: Nick Coghlan -Discussions-To: +Discussions-To: distutils-sig@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0423.txt b/pep-0423.txt index b33218797..1108312bd 100644 --- a/pep-0423.txt +++ b/pep-0423.txt @@ -3,7 +3,7 @@ Title: Naming conventions and recipes related to packaging Version: $Revision$ Last-Modified: $Date$ Author: Benoit Bryon -Discussions-To: +Discussions-To: distutils-sig@python.org Status: Deferred Type: Informational Content-Type: text/x-rst diff --git a/pep-0426.txt b/pep-0426.txt index 20cae9a24..571507244 100644 --- a/pep-0426.txt +++ b/pep-0426.txt @@ -6,7 +6,7 @@ Author: Nick Coghlan , Daniel Holth , Donald Stufft BDFL-Delegate: Donald Stufft -Discussions-To: Distutils SIG +Discussions-To: distutils-sig@python.org Status: Withdrawn Type: Informational Content-Type: text/x-rst diff --git a/pep-0427.txt b/pep-0427.txt index 4b40773e8..4392b2d67 100644 --- a/pep-0427.txt +++ b/pep-0427.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Daniel Holth BDFL-Delegate: Nick Coghlan -Discussions-To: +Discussions-To: distutils-sig@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0436.txt b/pep-0436.txt index 9b834cdba..e65684d2e 100644 --- a/pep-0436.txt +++ b/pep-0436.txt @@ -3,7 +3,7 @@ Title: The Argument Clinic DSL Version: $Revision$ Last-Modified: $Date$ Author: Larry Hastings -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0439.txt b/pep-0439.txt index aacbc201f..90c1650d4 100644 --- a/pep-0439.txt +++ b/pep-0439.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Richard Jones BDFL-Delegate: Nick Coghlan -Discussions-To: +Discussions-To: distutils-sig@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0440.txt b/pep-0440.txt index 0ee1f92a1..d887ea005 100644 --- a/pep-0440.txt +++ b/pep-0440.txt @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Nick Coghlan , Donald Stufft BDFL-Delegate: Nick Coghlan -Discussions-To: Distutils SIG +Discussions-To: distutils-sig@python.org Status: Active Type: Informational Content-Type: text/x-rst diff --git a/pep-0443.txt b/pep-0443.txt index 5da643a0a..8a5d6071f 100644 --- a/pep-0443.txt +++ b/pep-0443.txt @@ -3,7 +3,7 @@ Title: Single-dispatch generic functions Version: $Revision$ Last-Modified: $Date$ Author: Łukasz Langa -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0444.txt b/pep-0444.txt index 499c98fe5..e06bc8971 100644 --- a/pep-0444.txt +++ b/pep-0444.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Chris McDonough , Armin Ronacher -Discussions-To: Python Web-SIG +Discussions-To: web-sig@python.org Status: Deferred Type: Informational Content-Type: text/x-rst diff --git a/pep-0457.txt b/pep-0457.txt index 8a4123d35..7ce06c782 100644 --- a/pep-0457.txt +++ b/pep-0457.txt @@ -3,7 +3,7 @@ Title: Notation For Positional-Only Parameters Version: $Revision$ Last-Modified: $Date$ Author: Larry Hastings -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep-0459.txt b/pep-0459.txt index 4ca1958b9..904c88d1d 100644 --- a/pep-0459.txt +++ b/pep-0459.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Nick Coghlan BDFL-Delegate: Nick Coghlan -Discussions-To: Distutils SIG +Discussions-To: distutils-sig@python.org Status: Withdrawn Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0480.txt b/pep-0480.txt index 8f18e132f..0171e584f 100644 --- a/pep-0480.txt +++ b/pep-0480.txt @@ -6,7 +6,7 @@ Author: Trishank Karthik Kuppusamy , Vladimir Diaz , Justin Cappos , Marina Moore BDFL-Delegate: Donald Stufft -Discussions-To: Packaging category on Python Discourse +Discussions-To: https://discuss.python.org/c/packaging Status: Draft Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0482.txt b/pep-0482.txt index 2f17d5b98..57860e736 100644 --- a/pep-0482.txt +++ b/pep-0482.txt @@ -3,7 +3,7 @@ Title: Literature Overview for Type Hints Version: $Revision$ Last-Modified: $Date$ Author: Łukasz Langa -Discussions-To: Python-Ideas +Discussions-To: python-ideas@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep-0483.txt b/pep-0483.txt index 460f0c64f..af145dd16 100644 --- a/pep-0483.txt +++ b/pep-0483.txt @@ -3,7 +3,7 @@ Title: The Theory of Type Hints Version: $Revision$ Last-Modified: $Date$ Author: Guido van Rossum , Ivan Levkivskyi -Discussions-To: Python-Ideas +Discussions-To: python-ideas@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep-0484.txt b/pep-0484.txt index 184b05b62..a3a633b84 100644 --- a/pep-0484.txt +++ b/pep-0484.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Guido van Rossum , Jukka Lehtosalo , Łukasz Langa BDFL-Delegate: Mark Shannon -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Provisional Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0491.txt b/pep-0491.txt index 1d20cc11e..d348cbde4 100644 --- a/pep-0491.txt +++ b/pep-0491.txt @@ -3,7 +3,7 @@ Title: The Wheel Binary Package Format 1.9 Version: $Revision$ Last-Modified: $Date$ Author: Daniel Holth -Discussions-To: +Discussions-To: distutils-sig@python.org Status: Deferred Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0492.txt b/pep-0492.txt index ed8db52ba..4a1da0c5f 100644 --- a/pep-0492.txt +++ b/pep-0492.txt @@ -3,7 +3,7 @@ Title: Coroutines with async and await syntax Version: $Revision$ Last-Modified: $Date$ Author: Yury Selivanov -Discussions-To: +Discussions-To: python-dev@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0495.txt b/pep-0495.txt index 197e78a81..36a26d0f7 100644 --- a/pep-0495.txt +++ b/pep-0495.txt @@ -3,7 +3,7 @@ Title: Local Time Disambiguation Version: $Revision$ Last-Modified: $Date$ Author: Alexander Belopolsky , Tim Peters -Discussions-To: Datetime-SIG +Discussions-To: datetime-sig@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0500.txt b/pep-0500.txt index 947a41e8c..3b98a8e08 100644 --- a/pep-0500.txt +++ b/pep-0500.txt @@ -4,7 +4,7 @@ Title: A protocol for delegating datetime methods to their Version: $Revision$ Last-Modified: $Date$ Author: Alexander Belopolsky , Tim Peters -Discussions-To: Datetime-SIG +Discussions-To: datetime-sig@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0508.txt b/pep-0508.txt index 7c02041da..f2b099c98 100644 --- a/pep-0508.txt +++ b/pep-0508.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Robert Collins BDFL-Delegate: Donald Stufft -Discussions-To: distutils-sig +Discussions-To: distutils-sig@python.org Status: Active Type: Informational Content-Type: text/x-rst diff --git a/pep-0513.txt b/pep-0513.txt index 7e3d2b794..f4f2e939c 100644 --- a/pep-0513.txt +++ b/pep-0513.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Robert T. McGibbon , Nathaniel J. Smith BDFL-Delegate: Nick Coghlan -Discussions-To: Distutils SIG +Discussions-To: distutils-sig@python.org Status: Superseded Type: Informational Content-Type: text/x-rst diff --git a/pep-0516.txt b/pep-0516.txt index f9341a5bf..9a7260a17 100644 --- a/pep-0516.txt +++ b/pep-0516.txt @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Robert Collins , Nathaniel Smith BDFL-Delegate: Nick Coghlan -Discussions-To: distutils-sig +Discussions-To: distutils-sig@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0517.txt b/pep-0517.txt index 078668b6e..f84b8c2d5 100644 --- a/pep-0517.txt +++ b/pep-0517.txt @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Nathaniel J. Smith , Thomas Kluyver BDFL-Delegate: Nick Coghlan -Discussions-To: +Discussions-To: distutils-sig@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0518.txt b/pep-0518.txt index b9f6a67f1..c3f74483e 100644 --- a/pep-0518.txt +++ b/pep-0518.txt @@ -6,7 +6,7 @@ Author: Brett Cannon , Nathaniel Smith , Donald Stufft BDFL-Delegate: Nick Coghlan -Discussions-To: distutils-sig +Discussions-To: distutils-sig@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0525.txt b/pep-0525.txt index 58a63d37d..6eb5f252f 100644 --- a/pep-0525.txt +++ b/pep-0525.txt @@ -3,7 +3,7 @@ Title: Asynchronous Generators Version: $Revision$ Last-Modified: $Date$ Author: Yury Selivanov -Discussions-To: +Discussions-To: python-dev@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0530.txt b/pep-0530.txt index 8968e0ce2..a646f9f4c 100644 --- a/pep-0530.txt +++ b/pep-0530.txt @@ -3,7 +3,7 @@ Title: Asynchronous Comprehensions Version: $Revision$ Last-Modified: $Date$ Author: Yury Selivanov -Discussions-To: +Discussions-To: python-dev@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0541.txt b/pep-0541.txt index 75c2e8ec1..45675642f 100644 --- a/pep-0541.txt +++ b/pep-0541.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Łukasz Langa BDFL-Delegate: Mark Mangoba -Discussions-To: distutils-sig +Discussions-To: distutils-sig@python.org Status: Final Type: Process Content-Type: text/x-rst diff --git a/pep-0544.txt b/pep-0544.txt index 8fc57f048..0e9e73f04 100644 --- a/pep-0544.txt +++ b/pep-0544.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Ivan Levkivskyi , Jukka Lehtosalo , Łukasz Langa BDFL-Delegate: Guido van Rossum -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0549.rst b/pep-0549.rst index ca58074c3..7a69225a5 100644 --- a/pep-0549.rst +++ b/pep-0549.rst @@ -3,7 +3,7 @@ Title: Instance Descriptors Version: $Revision$ Last-Modified: $Date$ Author: larry@hastings.org (Larry Hastings) -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0558.rst b/pep-0558.rst index b8a39f1d6..685163fd4 100644 --- a/pep-0558.rst +++ b/pep-0558.rst @@ -2,7 +2,7 @@ PEP: 558 Title: Defined semantics for locals() Author: Nick Coghlan BDFL-Delegate: Nathaniel J. Smith -Discussions-To: +Discussions-To: python-dev@python.org Status: Draft Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0563.rst b/pep-0563.rst index e6e64a697..dcea01cf1 100644 --- a/pep-0563.rst +++ b/pep-0563.rst @@ -3,7 +3,7 @@ Title: Postponed Evaluation of Annotations Version: $Revision$ Last-Modified: $Date$ Author: Łukasz Langa -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0566.rst b/pep-0566.rst index 7c54352d6..f782a947c 100644 --- a/pep-0566.rst +++ b/pep-0566.rst @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Dustin Ingram BDFL-Delegate: Daniel Holth -Discussions-To: distutils-sig +Discussions-To: distutils-sig@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0571.rst b/pep-0571.rst index 446ca2e01..4ac19983f 100644 --- a/pep-0571.rst +++ b/pep-0571.rst @@ -6,7 +6,7 @@ Author: Mark Williams , Geoffrey Thomas , Thomas Kluyver BDFL-Delegate: Nick Coghlan -Discussions-To: Distutils SIG +Discussions-To: distutils-sig@python.org Status: Superseded Type: Informational Content-Type: text/x-rst diff --git a/pep-0581.rst b/pep-0581.rst index 869c87d5b..02c79f6b5 100644 --- a/pep-0581.rst +++ b/pep-0581.rst @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Mariatta BDFL-Delegate: Barry Warsaw -Discussions-To: Core-Workflow Category on Discourse +Discussions-To: https://discuss.python.org/c/core-workflow Status: Accepted Type: Process Content-Type: text/x-rst diff --git a/pep-0585.rst b/pep-0585.rst index 1c284404d..bb8f23d94 100644 --- a/pep-0585.rst +++ b/pep-0585.rst @@ -3,7 +3,7 @@ Title: Type Hinting Generics In Standard Collections Version: $Revision$ Last-Modified: $Date$ Author: Łukasz Langa -Discussions-To: Typing-Sig +Discussions-To: typing-sig@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0586.rst b/pep-0586.rst index 2983f40e4..95729fb20 100644 --- a/pep-0586.rst +++ b/pep-0586.rst @@ -2,7 +2,7 @@ PEP: 586 Title: Literal Types Author: Michael Lee , Ivan Levkivskyi , Jukka Lehtosalo BDFL-Delegate: Guido van Rossum -Discussions-To: Typing-Sig +Discussions-To: typing-sig@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0588.rst b/pep-0588.rst index 003909680..df7ae4b32 100644 --- a/pep-0588.rst +++ b/pep-0588.rst @@ -2,7 +2,7 @@ PEP: 588 Title: GitHub Issues Migration Plan Author: Mariatta BDFL-Delegate: Barry Warsaw -Discussions-To: Core-Workflow Category on Discourse +Discussions-To: https://discuss.python.org/c/core-workflow Status: Draft Type: Informational Content-Type: text/x-rst diff --git a/pep-0600.rst b/pep-0600.rst index ddeb6d6bd..68938b4b7 100644 --- a/pep-0600.rst +++ b/pep-0600.rst @@ -6,7 +6,7 @@ Author: Nathaniel J. Smith Thomas Kluyver Sponsor: Paul Moore BDFL-Delegate: Paul Moore -Discussions-To: Discourse https://discuss.python.org/t/the-next-manylinux-specification/1043 +Discussions-To: https://discuss.python.org/t/the-next-manylinux-specification/1043 Status: Accepted Type: Informational Content-Type: text/x-rst diff --git a/pep-0612.rst b/pep-0612.rst index e01f2067c..f624a82d1 100644 --- a/pep-0612.rst +++ b/pep-0612.rst @@ -3,7 +3,7 @@ Title: Parameter Specification Variables Author: Mark Mendoza Sponsor: Guido van Rossum BDFL-Delegate: Guido van Rossum -Discussions-To: Typing-Sig +Discussions-To: typing-sig@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0617.rst b/pep-0617.rst index 08d074535..dad56d32d 100644 --- a/pep-0617.rst +++ b/pep-0617.rst @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Guido van Rossum , Pablo Galindo , Lysandros Nikolaou -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0622.rst b/pep-0622.rst index 05c697322..32cfd79ff 100644 --- a/pep-0622.rst +++ b/pep-0622.rst @@ -9,7 +9,7 @@ Author: Brandt Bucher , Guido van Rossum , Talin BDFL-Delegate: -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Superseded Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0634.rst b/pep-0634.rst index f6414365b..116ce0c82 100644 --- a/pep-0634.rst +++ b/pep-0634.rst @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Brandt Bucher , Guido van Rossum BDFL-Delegate: -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0635.rst b/pep-0635.rst index d3ff5a55f..f038c565b 100644 --- a/pep-0635.rst +++ b/pep-0635.rst @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Tobias Kohn , Guido van Rossum BDFL-Delegate: -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep-0636.rst b/pep-0636.rst index b476f7c59..a28f6fdb7 100644 --- a/pep-0636.rst +++ b/pep-0636.rst @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Daniel F Moisset Sponsor: Guido van Rossum BDFL-Delegate: -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep-0642.rst b/pep-0642.rst index 6932bedb2..259062709 100644 --- a/pep-0642.rst +++ b/pep-0642.rst @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Nick Coghlan BDFL-Delegate: -Discussions-To: Python-Dev +Discussions-To: python-dev@python.org Status: Draft Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0647.rst b/pep-0647.rst index 4a9c5912e..b3c4ea124 100644 --- a/pep-0647.rst +++ b/pep-0647.rst @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Eric Traut Sponsor: Guido van Rossum -Discussions-To: Typing-Sig +Discussions-To: typing-sig@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-0673.rst b/pep-0673.rst index a61722fcd..5153d938e 100644 --- a/pep-0673.rst +++ b/pep-0673.rst @@ -5,7 +5,7 @@ Last-Modified: $Date$ Author: Pradeep Kumar Srinivasan , James Hilton-Balfe Sponsor: Jelle Zijlstra -Discussions-To: Typing-Sig +Discussions-To: typing-sig@python.org Status: Accepted Type: Standards Track Content-Type: text/x-rst diff --git a/pep-3124.txt b/pep-3124.txt index 1d86bfbe6..a3500ba5c 100644 --- a/pep-3124.txt +++ b/pep-3124.txt @@ -3,7 +3,7 @@ Title: Overloading, Generic Functions, Interfaces, and Adaptation Version: $Revision$ Last-Modified: $Date$ Author: Phillip J. Eby -Discussions-To: Python 3000 List +Discussions-To: python-3000@python.org Status: Deferred Type: Standards Track Content-Type: text/x-rst diff --git a/pep-3127.txt b/pep-3127.txt index 05172ef3b..ef840bea7 100644 --- a/pep-3127.txt +++ b/pep-3127.txt @@ -3,7 +3,7 @@ Title: Integer Literal Support and Syntax Version: $Revision$ Last-Modified: $Date$ Author: Patrick Maupin -Discussions-To: Python-3000@python.org +Discussions-To: python-3000@python.org Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-3128.txt b/pep-3128.txt index c4c3e8254..0721cb1a2 100644 --- a/pep-3128.txt +++ b/pep-3128.txt @@ -3,7 +3,7 @@ Title: BList: A Faster List-like Type Version: $Revision$ Last-Modified: $Date$ Author: Daniel Stutzbach -Discussions-To: Python 3000 List +Discussions-To: python-3000@python.org Status: Rejected Type: Standards Track Content-Type: text/x-rst diff --git a/pep-3144.txt b/pep-3144.txt index f8be50984..aff805637 100644 --- a/pep-3144.txt +++ b/pep-3144.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Peter Moody BDFL-Delegate: Nick Coghlan -Discussions-To: +Discussions-To: ipaddr-py-dev@googlegroups.com Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-3156.txt b/pep-3156.txt index d67612522..e2b631756 100644 --- a/pep-3156.txt +++ b/pep-3156.txt @@ -4,7 +4,7 @@ Version: $Revision$ Last-Modified: $Date$ Author: Guido van Rossum BDFL-Delegate: Antoine Pitrou -Discussions-To: +Discussions-To: python-tulip@googlegroups.com Status: Final Type: Standards Track Content-Type: text/x-rst diff --git a/pep-3333.txt b/pep-3333.txt index 1005890f2..d6d3dfa74 100644 --- a/pep-3333.txt +++ b/pep-3333.txt @@ -3,7 +3,7 @@ Title: Python Web Server Gateway Interface v1.0.1 Version: $Revision$ Last-Modified: $Date$ Author: P.J. Eby -Discussions-To: Python Web-SIG +Discussions-To: web-sig@python.org Status: Final Type: Informational Content-Type: text/x-rst diff --git a/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py b/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py index 7f2f905e4..e7e4bfd21 100644 --- a/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py +++ b/pep_sphinx_extensions/pep_processor/transforms/pep_headers.py @@ -68,19 +68,20 @@ class PEPHeaders(transforms.Transform): raise PEPParsingError(msg) para = body[0] - if name in {"author", "bdfl-delegate", "pep-delegate", "discussions-to", "sponsor"}: + if name in {"author", "bdfl-delegate", "pep-delegate", "sponsor"}: # mask emails for node in para: if not isinstance(node, nodes.reference): continue - if name == "discussions-to": - if node["refuri"].startswith("http"): - node[0] = _list_name_from_thread(node) - else: - node[0] = _mask_email(node) - node["refuri"] += f"?subject=PEP%20{pep_num}" - else: - node.replace_self(_mask_email(node)) + node.replace_self(_mask_email(node)) + elif name in {"discussions-to", "resolution"}: + # only handle threads, email addresses in Discussions-To aren't + # masked. + for node in para: + if not isinstance(node, nodes.reference): + continue + if node["refuri"].startswith("https://mail.python.org"): + node[0] = _pretty_thread(node[0]) elif name in {"replaces", "superseded-by", "requires"}: # replace PEP numbers with normalised list of links to PEPs new_body = [] @@ -97,20 +98,20 @@ class PEPHeaders(transforms.Transform): field.parent.remove(field) -def _list_name_from_thread(node: nodes.reference) -> nodes.raw: +def _pretty_thread(text: nodes.Text) -> nodes.Text: + parts = text.title().replace("Sig", "SIG").split("/") + # mailman structure is # https://mail.python.org/archives/list//thread/ + try: + return nodes.Text(parts[parts.index("Archives") + 2].removesuffix("@Python.Org")) + except ValueError: + pass + # pipermail structure is # https://mail.python.org/pipermail/// - parts = node[0].split("/") try: - list_name = parts[parts.index("archives") + 2] - masked_name = list_name.replace("@", " at ") + return nodes.Text(parts[parts.index("Pipermail") + 1]) except ValueError: - try: - list_name = parts[parts.index("pipermail") + 1] - masked_name = list_name + " at python.org" - except ValueError: - # archives and pipermail not in list, e.g. PEP 245 - return node[0] - return nodes.raw("", masked_name, format="html") + # archives and pipermail not in list, e.g. PEP 245 + return text diff --git a/pep_sphinx_extensions/pep_processor/transforms/pep_zero.py b/pep_sphinx_extensions/pep_processor/transforms/pep_zero.py index 204937fc3..a9b0a074c 100644 --- a/pep_sphinx_extensions/pep_processor/transforms/pep_zero.py +++ b/pep_sphinx_extensions/pep_processor/transforms/pep_zero.py @@ -85,9 +85,6 @@ def _mask_email(ref: nodes.reference) -> nodes.reference: The returned node has no refuri link attribute. """ - if "refuri" not in ref or not ref["refuri"].startswith("mailto:"): + if not ref.get("refuri", "").startswith("mailto:"): return ref - list_name = ref["refuri"].removeprefix("mailto:").strip() - if list_name in {"peps@python.org", "python-list@python.org", "python-dev@python.org"}: - return ref[0] return nodes.raw("", ref[0].replace("@", " at "), format="html")