Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5061a74

Browse files
ZackerySpytzserhiy-storchaka
authored andcommitted
Remove unneeded PyUnicode_READY() in tokenizer.c (GH-9114)
1 parent 0afada1 commit 5061a74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ verify_identifier(struct tok_state *tok)
13241324
if (tok->decoding_erred)
13251325
return 0;
13261326
s = PyUnicode_DecodeUTF8(tok->start, tok->cur - tok->start, NULL);
1327-
if (s == NULL || PyUnicode_READY(s) == -1) {
1327+
if (s == NULL) {
13281328
if (PyErr_ExceptionMatches(PyExc_UnicodeDecodeError)) {
13291329
PyErr_Clear();
13301330
tok->done = E_IDENTIFIER;

0 commit comments

Comments
 (0)