Skip to content

Commit 1abeda8

Browse files
authored
bpo-40204: Fix duplicated productionlist names in the doc (GH-21900)
Sphinx 3 disallows having more than one productionlist markup with the same name. Simply remove names in this case, since names are not shown anyway. For example, fix the Sphinx 3 warning: Doc/reference/introduction.rst:96: duplicate token description of *:name, other instance in reference/expressions
1 parent fbf43f0 commit 1abeda8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/string.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ non-empty format specification typically modifies the result.
308308

309309
The general form of a *standard format specifier* is:
310310

311-
.. productionlist:: sf
311+
.. productionlist::
312312
format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`grouping_option`][.`precision`][`type`]
313313
fill: <any character>
314314
align: "<" | ">" | "=" | "^"

Doc/reference/introduction.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Notation
9393
The descriptions of lexical analysis and syntax use a modified BNF grammar
9494
notation. This uses the following style of definition:
9595

96-
.. productionlist:: *
96+
.. productionlist::
9797
name: `lc_letter` (`lc_letter` | "_")*
9898
lc_letter: "a"..."z"
9999

0 commit comments

Comments
 (0)