Skip to content

Commit 8bb7fda

Browse files
doc: Remove backslashes in doctest grammar docs (GH-29346)
(cherry picked from commit 22860db) Co-authored-by: George Zhang <geetransit@gmail.com>
1 parent 4ce1a82 commit 8bb7fda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/doctest.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -696,10 +696,10 @@ special Python comments following an example's source code:
696696

697697
.. productionlist:: doctest
698698
directive: "#" "doctest:" `directive_options`
699-
directive_options: `directive_option` ("," `directive_option`)\*
699+
directive_options: `directive_option` ("," `directive_option`)*
700700
directive_option: `on_or_off` `directive_option_name`
701-
on_or_off: "+" \| "-"
702-
directive_option_name: "DONT_ACCEPT_BLANKLINE" \| "NORMALIZE_WHITESPACE" \| ...
701+
on_or_off: "+" | "-"
702+
directive_option_name: "DONT_ACCEPT_BLANKLINE" | "NORMALIZE_WHITESPACE" | ...
703703

704704
Whitespace is not allowed between the ``+`` or ``-`` and the directive option
705705
name. The directive option name can be any of the option flag names explained

0 commit comments

Comments
 (0)