Commit 5061a74a authored by Zackery Spytz's avatar Zackery Spytz Committed by Serhiy Storchaka

Remove unneeded PyUnicode_READY() in tokenizer.c (GH-9114)

parent 0afada16
......@@ -1324,7 +1324,7 @@ verify_identifier(struct tok_state *tok)
if (tok->decoding_erred)
return 0;
s = PyUnicode_DecodeUTF8(tok->start, tok->cur - tok->start, NULL);
if (s == NULL || PyUnicode_READY(s) == -1) {
if (s == NULL) {
if (PyErr_ExceptionMatches(PyExc_UnicodeDecodeError)) {
PyErr_Clear();
tok->done = E_IDENTIFIER;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment