mirror of
https://github.com/python/cpython.git
synced 2025-10-30 01:47:38 +00:00
This commit simplifies async/await tokenization in tokenizer.c, tokenize.py & lib2to3/tokenize.py. Previous solution was to keep a stack of async-def & def blocks, whereas the new approach is just to remember position of the outermost async-def block. This change won't bring any parsing performance improvements, but it makes the code much easier to read and validate. |
||
|---|---|---|
| .. | ||
| fixes | ||
| pgen2 | ||
| tests | ||
| __init__.py | ||
| __main__.py | ||
| btm_matcher.py | ||
| btm_utils.py | ||
| fixer_base.py | ||
| fixer_util.py | ||
| Grammar.txt | ||
| main.py | ||
| patcomp.py | ||
| PatternGrammar.txt | ||
| pygram.py | ||
| pytree.py | ||
| refactor.py | ||