gh-116881: Remove erroneous or redundant grammar NULL (GH-116885)

In Lexical Analysis f-strings section, NULL in the description
of 'literal character' means '\0'.  In the format_spec grammar
production, it is wrong with that meaning and redundant if
instead interpreted as <nothing>.  Remove it there.
This commit is contained in:
Terry Jan Reedy 2024-03-18 05:31:13 -04:00 committed by GitHub
parent 3a99f5c5f3
commit 4e45c6c54a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -733,7 +733,7 @@ for the contents of the string is:
: ("," `conditional_expression` | "," "*" `or_expr`)* [","]
: | `yield_expression`
conversion: "s" | "r" | "a"
format_spec: (`literal_char` | NULL | `replacement_field`)*
format_spec: (`literal_char` | `replacement_field`)*
literal_char: <any code point except "{", "}" or NULL>
The parts of the string outside curly braces are treated literally,