summaryrefslogtreecommitdiffstats
path: root/Parser/parser.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-06-02 11:33:26 (GMT)
committerGitHub <noreply@github.com>2023-06-02 11:33:26 (GMT)
commit41de54378d54f7ffc38f07db4219e80f48c4249e (patch)
tree42b56206d421d532fb2ac1a9cce7a31458ab26c4 /Parser/parser.c
parent4bfa01b9d911ce9358cf1a453bee15554f8e4c07 (diff)
downloadcpython-41de54378d54f7ffc38f07db4219e80f48c4249e.zip
cpython-41de54378d54f7ffc38f07db4219e80f48c4249e.tar.gz
cpython-41de54378d54f7ffc38f07db4219e80f48c4249e.tar.bz2
gh-105194: Fix format specifier escaped characters in f-strings (#105231)
Diffstat (limited to 'Parser/parser.c')
-rw-r--r--Parser/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index 1705ebd..006ee29 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -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--;