diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-09-10 06:27:31 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-09-10 06:27:31 (GMT) |
commit | 5061a74a4c8686764a299d82df048bf858dd263b (patch) | |
tree | dfa3ad467bcc2f1e9769229e13ab6f7e09d32976 /Parser/tokenizer.c | |
parent | 0afada163c7ef25c3a9d46ed445481fb69f2ecaf (diff) | |
download | cpython-5061a74a4c8686764a299d82df048bf858dd263b.zip cpython-5061a74a4c8686764a299d82df048bf858dd263b.tar.gz cpython-5061a74a4c8686764a299d82df048bf858dd263b.tar.bz2 |
Remove unneeded PyUnicode_READY() in tokenizer.c (GH-9114)
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 6566fde..fc75bae 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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; |