Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lexer.c
1 parent a327810 commit c810ed7Copy full SHA for c810ed7
1 file changed
Parser/lexer/lexer.c
@@ -329,11 +329,7 @@ verify_identifier(struct tok_state *tok)
329
return 0;
330
}
331
Py_ssize_t invalid = _PyUnicode_ScanIdentifier(s);
332
- if (invalid < 0) {
333
- Py_DECREF(s);
334
- tok->done = E_ERROR;
335
- return 0;
336
- }
+ assert(invalid >= 0);
337
assert(PyUnicode_GET_LENGTH(s) > 0);
338
if (invalid < PyUnicode_GET_LENGTH(s)) {
339
Py_UCS4 ch = PyUnicode_READ_CHAR(s, invalid);
0 commit comments