summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-09-18 07:27:21 (GMT)
committerGitHub <noreply@github.com>2020-09-18 07:27:21 (GMT)
commitc053402927d36f9f26160ded24999bf5109ea5eb (patch)
tree266a42201fb2287e560a217885d7eaa971f3be5a /Doc/library/functions.rst
parent6d893bab77497fcbdc751dc074c69df93ecab908 (diff)
downloadcpython-c053402927d36f9f26160ded24999bf5109ea5eb.zip
cpython-c053402927d36f9f26160ded24999bf5109ea5eb.tar.gz
cpython-c053402927d36f9f26160ded24999bf5109ea5eb.tar.bz2
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
Use an unique identifier for the different grammars documented using the Sphinx productionlist markup. productionlist markups of the same grammar, like "expressions" or "compound statements", use the same identifier "python-grammar". (cherry picked from commit 8af239eacfcf52e4e0e2b0223e7cea4672309483) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index b88c56e..124085e 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -582,7 +582,7 @@ are always available. They are listed here in alphabetical order.
input must conform to the following grammar after leading and trailing
whitespace characters are removed:
- .. productionlist::
+ .. productionlist:: float
sign: "+" | "-"
infinity: "Infinity" | "inf"
nan: "nan"