mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-107015: Remove async_hacks from the tokenizer (#107018)
This commit is contained in:
parent
b0202a4e5d
commit
da8f87b7ea
20 changed files with 404 additions and 499 deletions
|
@ -237,9 +237,6 @@ tokenizeriter_next(tokenizeriterobject *it)
|
|||
if (type > DEDENT && type < OP) {
|
||||
type = OP;
|
||||
}
|
||||
else if (type == ASYNC || type == AWAIT) {
|
||||
type = NAME;
|
||||
}
|
||||
else if (type == NEWLINE) {
|
||||
Py_DECREF(str);
|
||||
if (!it->tok->implicit_newline) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue