aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Parser/lexer/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/lexer/lexer.c')
-rw-r--r--Parser/lexer/lexer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/lexer/lexer.c b/Parser/lexer/lexer.c
index 4d10bccf0a5..0a078dd5941 100644
--- a/Parser/lexer/lexer.c
+++ b/Parser/lexer/lexer.c
@@ -1421,7 +1421,8 @@ f_string_middle:
return MAKE_TOKEN(
_PyTokenizer_syntaxerror(
tok,
- "f-string: newlines are not allowed in format specifiers for single quoted f-strings"
+ "%c-string: newlines are not allowed in format specifiers for single quoted %c-strings",
+ TOK_GET_STRING_PREFIX(tok), TOK_GET_STRING_PREFIX(tok)
)
);
}