Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add assertion in verify_identifier()
  • Loading branch information
vstinner committed Jan 30, 2020
commit 602d7ac834e9d9c3eb8ebfe55898a41cb7a8ab30
1 change: 1 addition & 0 deletions Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ verify_identifier(struct tok_state *tok)
return 0;
}
result = PyUnicode_IsIdentifier(s);
assert(result >= 0);
if (result < 0) {
Comment thread
vstinner marked this conversation as resolved.
/* silently ignore error */
PyErr_Clear();
Expand Down