Branch: refs/heads/3.6 Home: https://github.com/python/cpython Commit: e8412e684ed741df246e8430f4911b31b0d8be1f https://github.com/python/cpython/commit/e8412e684ed741df246e8430f4911b31b0d8be1f Author: Łukasz Langa <lukasz at langa.pl> Date: 2017年05月22日 (2017年5月22日) Changed paths: M Lib/lib2to3/pgen2/tokenize.py M Lib/lib2to3/tests/test_parser.py Log Message: ----------- [3.6] bpo-23894: make lib2to3 recognize f-strings (GH-1733) (#1737) Note: this doesn't unpack f-strings into the underlying JoinedStr AST. Ideally we'd fully implement JoinedStr here but given its additional complexity, I think this is worth bandaiding as is. This unblocks tools like https://github.com/google/yapf to format 3.6 syntax using f-strings. (cherry picked from commit 1b9530c536664276ce866ae602ce04adce0810e1)