Skip to content

Commit 72d1735

Browse files
doc: Remove backslashes in doctest grammar docs (GH-29346)
(cherry picked from commit 22860db) Co-authored-by: George Zhang <[email protected]>
1 parent 4323439 commit 72d1735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/doctest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,10 +697,10 @@ special Python comments following an example's source code:
697697

698698
.. productionlist:: doctest
699699
directive: "#" "doctest:" `directive_options`
700-
directive_options: `directive_option` ("," `directive_option`)\*
700+
directive_options: `directive_option` ("," `directive_option`)*
701701
directive_option: `on_or_off` `directive_option_name`
702-
on_or_off: "+" \| "-"
703-
directive_option_name: "DONT_ACCEPT_BLANKLINE" \| "NORMALIZE_WHITESPACE" \| ...
702+
on_or_off: "+" | "-"
703+
directive_option_name: "DONT_ACCEPT_BLANKLINE" | "NORMALIZE_WHITESPACE" | ...
704704

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

0 commit comments

Comments
 (0)