summaryrefslogtreecommitdiffstats
path: root/Parser/string_parser.c
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2023-10-12 07:34:35 (GMT)
committerGitHub <noreply@github.com>2023-10-12 07:34:35 (GMT)
commit17d65547df55eaefe077c45242a7f2d175961dfd (patch)
tree008f24ce995cd5e0a88f35bba06c8ea7ad76f19b /Parser/string_parser.c
parent23645420dcc4f3b7b2ec4045ef6ac126c37a98c2 (diff)
downloadcpython-17d65547df55eaefe077c45242a7f2d175961dfd.zip
cpython-17d65547df55eaefe077c45242a7f2d175961dfd.tar.gz
cpython-17d65547df55eaefe077c45242a7f2d175961dfd.tar.bz2
gh-104169: Fix test_peg_generator after tokenizer refactoring (#110727)
* Fix test_peg_generator after tokenizer refactoring * Remove references to tokenizer.c in comments etc.
Diffstat (limited to 'Parser/string_parser.c')
-rw-r--r--Parser/string_parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser/string_parser.c b/Parser/string_parser.c
index c5f4218..f1e0277 100644
--- a/Parser/string_parser.c
+++ b/Parser/string_parser.c
@@ -14,8 +14,9 @@ static int
warn_invalid_escape_sequence(Parser *p, const char *first_invalid_escape, Token *t)
{
unsigned char c = *first_invalid_escape;
- if ((t->type == FSTRING_MIDDLE || t->type == FSTRING_END) && (c == '{' || c == '}')) { // in this case the tokenizer has already emitted a warning,
- // see tokenizer.c:warn_invalid_escape_sequence
+ if ((t->type == FSTRING_MIDDLE || t->type == FSTRING_END) && (c == '{' || c == '}')) {
+ // in this case the tokenizer has already emitted a warning,
+ // see Parser/tokenizer/helpers.c:warn_invalid_escape_sequence
return 0;
}