[Python-checkins] doc: Remove backslashes in doctest grammar docs (#29346)
kumaraditya303
webhook-mailer at python.org
Sun Nov 27 01:38:44 EST 2022
https://github.com/python/cpython/commit/22860dbbc8b53954055847d2bb036af68b4ea409
commit: 22860dbbc8b53954055847d2bb036af68b4ea409
branch: main
author: George Zhang <geetransit at gmail.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2022-11-27T12:08:39+05:30
summary:
doc: Remove backslashes in doctest grammar docs (#29346)
files:
M Doc/library/doctest.rst
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 75c6ee289a91..c106d5a3383a 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
More information about the Python-checkins
mailing list