cpython/Lib/lib2to3
Yury Selivanov 8fb307cd65 Issue #24619: New approach for tokenizing async/await.
This commit fixes how one-line async-defs and defs are tracked
by tokenizer.  It allows to correctly parse invalid code such
as:

>>> async def f():
...     def g(): pass
...     async = 10

and valid code such as:

>>> async def f():
...     async def g(): pass
...     await z

As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:

>>> async def foo(): return await bar()
2015-07-22 13:33:45 +03:00
..
fixes
pgen2 Issue #24619: New approach for tokenizing async/await. 2015-07-22 13:33:45 +03:00
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