[Python-checkins] [python/cpython] e8412e: [3.6] bpo-23894: make lib2to3 recognize f-strings ...
GitHub
noreply at github.com
Tue May 23 01:23:30 EDT 2017
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 (Mon, 22 May 2017)
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)
More information about the Python-checkins
mailing list