diff options
author | Victor Stinner <vstinner@python.org> | 2020-08-17 06:41:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 06:41:42 (GMT) |
commit | 1abeda80f760134b4233608e2c288790f955b95a (patch) | |
tree | cb277dac120fa51aae30bb9b1182bd7af3407e6a /Doc/reference | |
parent | fbf43f051e7bf479709e122efa4b6edd4b09d4df (diff) | |
download | cpython-1abeda80f760134b4233608e2c288790f955b95a.zip cpython-1abeda80f760134b4233608e2c288790f955b95a.tar.gz cpython-1abeda80f760134b4233608e2c288790f955b95a.tar.bz2 |
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
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/introduction.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/introduction.rst b/Doc/reference/introduction.rst index bb7e390..62480bd 100644 --- a/Doc/reference/introduction.rst +++ b/Doc/reference/introduction.rst @@ -93,7 +93,7 @@ Notation The descriptions of lexical analysis and syntax use a modified BNF grammar notation. This uses the following style of definition: -.. productionlist:: * +.. productionlist:: name: `lc_letter` (`lc_letter` | "_")* lc_letter: "a"..."z" |