]> granicus.if.org Git - python/commit
bpo-30465: Fix lineno and col_offset in fstring AST nodes (#1800)
authorŁukasz Langa <lukasz@langa.pl>
Thu, 7 Sep 2017 00:27:58 +0000 (17:27 -0700)
committerericvsmith <ericvsmith@users.noreply.github.com>
Thu, 7 Sep 2017 00:27:58 +0000 (17:27 -0700)
commite7c566caf177afe43b57f0b2723e723d880368e8
tree03491466aa33eae3268c83f84ef0bdeecd104bc3
parent36d644d37acb1e33a3f1e96bf92f68e619a75880
bpo-30465: Fix lineno and col_offset in fstring AST nodes (#1800)

For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly.
Lib/test/test_fstring.py
Misc/NEWS.d/next/Core and Builtins/2017-09-06-10-47-29.bpo-30465.oe-3GD.rst [new file with mode: 0644]
Python/ast.c