PEP 701: Clarify that newlines also end format specifier mode (#3460)
This commit is contained in:
parent
dd08f74688
commit
32db9d6112
|
@ -373,8 +373,8 @@ tokens:
|
|||
2. Keep consuming tokens until a one of the following is encountered:
|
||||
|
||||
* A closing quote equal to the opening quote.
|
||||
* If in "format specifier mode" (see step 3), an opening brace (``{``) or a
|
||||
closing brace (``}``).
|
||||
* If in "format specifier mode" (see step 3), an opening brace (``{``), a
|
||||
closing brace (``}``), or a newline token (``\n``).
|
||||
* If not in "format specifier mode" (see step 3), an opening brace (``{``) or
|
||||
a closing brace (``}``) that is not immediately followed by another opening/closing
|
||||
brace.
|
||||
|
|
Loading…
Reference in New Issue