summaryrefslogtreecommitdiffstats
path: root/Parser/string_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/string_parser.c')
-rw-r--r--Parser/string_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/string_parser.c b/Parser/string_parser.c
index be5f0c4..d4ce338 100644
--- a/Parser/string_parser.c
+++ b/Parser/string_parser.c
@@ -248,7 +248,8 @@ _PyPegen_parse_string(Parser *p, Token *t)
const char *ch;
for (ch = s; *ch; ch++) {
if (Py_CHARMASK(*ch) >= 0x80) {
- RAISE_SYNTAX_ERROR(
+ RAISE_SYNTAX_ERROR_KNOWN_LOCATION(
+ t,
"bytes can only contain ASCII "
"literal characters");
return NULL;