black/blib2to3
Zsolt Dollenstein 883689366c Support parsing of async generators in non-async functions (#165)
This is a new syntax added in python3.7, so black can't verify that reformatting will not change the ast unless black itself is run with 3.7. We'll need to change the error message black gives in this case. @ambv any ideas?

Fixes #125.
2018-08-20 14:47:58 +01:00
..
pgen2 Support parsing of async generators in non-async functions (#165) 2018-08-20 14:47:58 +01:00
__init__.py Initial commit 2018-03-14 12:55:32 -07:00
__init__.pyi Initial commit 2018-03-14 12:55:32 -07:00
Grammar.txt Parse complex expressions in parameters after * and ** 2018-04-17 20:34:02 +01:00
LICENSE Link to GitHub + HTTPS + typos (#303) 2018-06-06 09:50:08 -07:00
PatternGrammar.txt Initial commit 2018-03-14 12:55:32 -07:00
pygram.py Store grammar pickle caches in CACHE_DIR 2018-05-19 14:06:27 -07:00
pygram.pyi Store grammar pickle caches in CACHE_DIR 2018-05-19 14:06:27 -07:00
pytree.py Don't mark subtrees as changed that were already marked. 2018-06-09 19:49:20 -07:00
pytree.pyi Clean up typing ignores, fix build 2018-03-15 23:26:56 -07:00
README Add support for all valid string literals (#115) 2018-04-09 14:36:40 -07:00

A subset of lib2to3 taken from Python 3.7.0b2.
Commit hash: 9c17e3a1987004b8bcfbe423953aad84493a7984

Reasons for forking:
- consistent handling of f-strings for users of Python < 3.6.2
- backport of BPO-33064 that fixes parsing files with trailing commas after
  *args and **kwargs
- backport of GH-6143 that restores the ability to reformat legacy usage of
  `async`
- support all types of string literals
- better ability to debug (better reprs)
- INDENT and DEDENT don't hold whitespace and comment prefixes
- ability to Cythonize