Skip to content

Commit ade12b9

Browse files
authored
Update Parser/lexer/lexer.c
1 parent 54cc4bc commit ade12b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/lexer/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ verify_identifier(struct tok_state *tok)
329329
return 0;
330330
}
331331
Py_ssize_t invalid = _PyUnicode_ScanIdentifier(s);
332-
332+
assert(invalid >= 0);
333333
assert(PyUnicode_GET_LENGTH(s) > 0);
334334
if (invalid < PyUnicode_GET_LENGTH(s)) {
335335
Py_UCS4 ch = PyUnicode_READ_CHAR(s, invalid);

0 commit comments

Comments
 (0)