mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-105194: Fix format specifier escaped characters in f-strings (#105231)
This commit is contained in:
parent
4bfa01b9d9
commit
41de54378d
6 changed files with 34 additions and 2 deletions
2
Parser/parser.c
generated
2
Parser/parser.c
generated
|
@ -16323,7 +16323,7 @@ fstring_format_spec_rule(Parser *p)
|
|||
)
|
||||
{
|
||||
D(fprintf(stderr, "%*c+ fstring_format_spec[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "FSTRING_MIDDLE"));
|
||||
_res = _PyPegen_constant_from_token ( p , t );
|
||||
_res = _PyPegen_decoded_constant_from_token ( p , t );
|
||||
if (_res == NULL && PyErr_Occurred()) {
|
||||
p->error_indicator = 1;
|
||||
p->level--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue