From 492aa0a7391043338d6e8c414708d55e378be79f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 28 Jul 2022 14:31:06 +0300 Subject: [PATCH 1/2] PEP 635: Fix duplicate labels --- pep-0635.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pep-0635.rst b/pep-0635.rst index f038c565b12..6f24cc5be86 100644 --- a/pep-0635.rst +++ b/pep-0635.rst @@ -397,7 +397,7 @@ and not for individual patterns. return a + [p] + b -.. _patterns: +.. _635-patterns: Patterns -------- @@ -586,7 +586,7 @@ without adding a significant benefit. It can always be added later. return expr -.. _literal_pattern: +.. _635-literal_pattern: Literal Patterns ~~~~~~~~~~~~~~~~ @@ -675,7 +675,7 @@ being. return expr -.. _capture_pattern: +.. _635-capture_pattern: Capture Patterns ~~~~~~~~~~~~~~~~ @@ -734,7 +734,7 @@ especially given that we expect capture patterns to be very common. return sum(a) / len(a) -.. _wildcard_pattern: +.. _635-wildcard_pattern: Wildcard Pattern ~~~~~~~~~~~~~~~~ @@ -901,7 +901,7 @@ Allowing users to explicitly specify the grouping is particularly helpful in case of OR patterns. -.. _sequence_pattern: +.. _635-sequence_pattern: Sequence Patterns ~~~~~~~~~~~~~~~~~ @@ -961,7 +961,7 @@ enumerate all other types that may be used to represent bytes (e.g. some, but not all, instances of ``memoryview`` and ``array.array``). -.. _mapping_pattern: +.. _635-mapping_pattern: Mapping Patterns ~~~~~~~~~~~~~~~~ @@ -1008,7 +1008,7 @@ unexpected side effect. change_red_to_blue(child) -.. _class_pattern: +.. _635-class_pattern: Class Patterns ~~~~~~~~~~~~~~ From 41395bd64783b11f38025b29eaa93a6d5785b090 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 28 Jul 2022 14:31:18 +0300 Subject: [PATCH 2/2] PEP 635: Remove redundant emacs metadata --- pep-0635.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pep-0635.rst b/pep-0635.rst index 6f24cc5be86..9e25e8f2088 100644 --- a/pep-0635.rst +++ b/pep-0635.rst @@ -1278,13 +1278,3 @@ Copyright This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive. - - -.. - Local Variables: - mode: indented-text - indent-tabs-mode: nil - sentence-end-double-space: t - fill-column: 70 - coding: utf-8 - End: