aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-11-26 22:46:33 -0800
committerGitHub <noreply@github.com>2022-11-26 22:46:33 -0800
commit8bb7fdaee8c19f0311f15dbea7f8eee80a67a50f (patch)
treeac2ff3164be2e961bf76809e2ef6e1a3f027347a
parentbpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (GH-24659) (diff)
downloadcpython-8bb7fdaee8c19f0311f15dbea7f8eee80a67a50f.tar.gz
cpython-8bb7fdaee8c19f0311f15dbea7f8eee80a67a50f.tar.bz2
cpython-8bb7fdaee8c19f0311f15dbea7f8eee80a67a50f.zip
doc: Remove backslashes in doctest grammar docs (GH-29346)
(cherry picked from commit 22860dbbc8b53954055847d2bb036af68b4ea409) Co-authored-by: George Zhang <geetransit@gmail.com>
-rw-r--r--Doc/library/doctest.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 75c6ee289a9..c106d5a3383 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -696,10 +696,10 @@ special Python comments following an example's source code:
.. productionlist:: doctest
directive: "#" "doctest:" `directive_options`
- directive_options: `directive_option` ("," `directive_option`)\*
+ directive_options: `directive_option` ("," `directive_option`)*
directive_option: `on_or_off` `directive_option_name`
- on_or_off: "+" \| "-"
- directive_option_name: "DONT_ACCEPT_BLANKLINE" \| "NORMALIZE_WHITESPACE" \| ...
+ on_or_off: "+" | "-"
+ directive_option_name: "DONT_ACCEPT_BLANKLINE" | "NORMALIZE_WHITESPACE" | ...
Whitespace is not allowed between the ``+`` or ``-`` and the directive option
name. The directive option name can be any of the option flag names explained