]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
doc: Remove backslashes in doctest grammar docs (GH-29346)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Nov 2022 06:46:33 +0000 (22:46 -0800)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 06:46:33 +0000 (22:46 -0800)
(cherry picked from commit 22860dbbc8b53954055847d2bb036af68b4ea409)

Co-authored-by: George Zhang <geetransit@gmail.com>
Doc/library/doctest.rst

index 75c6ee289a91e954eef2d9999f5e2a82a0fb977f..c106d5a3383a5e262c8a24eeee633347411d0151 100644 (file)
@@ -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