diff options
author | George Zhang <geetransit@gmail.com> | 2022-11-27 06:38:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 06:38:39 (GMT) |
commit | 22860dbbc8b53954055847d2bb036af68b4ea409 (patch) | |
tree | 356cf421cc0144d00355bd9438f390caea621b6e /Doc | |
parent | 62a5dc13e941d01beb215db4218a10977914ab55 (diff) | |
download | cpython-22860dbbc8b53954055847d2bb036af68b4ea409.zip cpython-22860dbbc8b53954055847d2bb036af68b4ea409.tar.gz cpython-22860dbbc8b53954055847d2bb036af68b4ea409.tar.bz2 |
doc: Remove backslashes in doctest grammar docs (#29346)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/doctest.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index 75c6ee2..c106d5a 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 |