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 fix instances of consecutive articles (closes #23221) 2015-01-13 09:17:24 -05:00
pgen2 Issue #24619: New approach for tokenizing async/await. 2015-07-22 13:33:45 +03:00
tests PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
__init__.py
__main__.py
btm_matcher.py
btm_utils.py
fixer_base.py
fixer_util.py Issue #22823: Use set literals in lib2to3. 2014-12-13 21:50:49 +02:00
Grammar.txt PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
main.py Issue #22173: Update lib2to3 tests to use unittest test discovery. 2014-10-29 12:24:59 -05:00
patcomp.py Issue #22823: Use set literals in lib2to3. 2014-12-13 21:50:49 +02:00
PatternGrammar.txt
pygram.py
pytree.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
refactor.py Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers. 2015-05-13 13:39:51 +03:00