diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2023-07-26 15:34:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 15:34:15 (GMT) |
commit | da8f87b7ea421894c41dfc37f578e03409c5d280 (patch) | |
tree | b48f7099f287b2269a25ab7476fae45c06182f05 /Python/Python-tokenize.c | |
parent | b0202a4e5d6b629ba5acbc703e950f08ebaf07df (diff) | |
download | cpython-da8f87b7ea421894c41dfc37f578e03409c5d280.zip cpython-da8f87b7ea421894c41dfc37f578e03409c5d280.tar.gz cpython-da8f87b7ea421894c41dfc37f578e03409c5d280.tar.bz2 |
gh-107015: Remove async_hacks from the tokenizer (#107018)
Diffstat (limited to 'Python/Python-tokenize.c')
-rw-r--r-- | Python/Python-tokenize.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/Python-tokenize.c b/Python/Python-tokenize.c index 1938562..1b02106 100644 --- a/Python/Python-tokenize.c +++ b/Python/Python-tokenize.c @@ -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) { |