]> granicus.if.org Git - python/commit
bpo-30465: Fix lineno and col_offset in fstring AST nodes (GH-1800) (gh-3409)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Sep 2017 02:43:04 +0000 (19:43 -0700)
committerericvsmith <ericvsmith@users.noreply.github.com>
Thu, 7 Sep 2017 02:43:04 +0000 (19:43 -0700)
commitaa1afc72c1ee1f090e6302198d9a0295f1ce1c05
treef01f154688ff43da194df3f66f07c5db1d2bfd92
parente00e1b812c31f093a98fc85281687c78162eb445
bpo-30465: Fix lineno and col_offset in fstring AST nodes (GH-1800) (gh-3409)

For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly.
(cherry picked from commit e7c566caf177afe43b57f0b2723e723d880368e8)
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