]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Fix shifting of nested f-strings in the new parser (GH-19771)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Wed, 29 Apr 2020 00:43:50 +0000 (03:43 +0300)
committerGitHub <noreply@github.com>
Wed, 29 Apr 2020 00:43:50 +0000 (01:43 +0100)
commit37af21b667a9f41437b5b8e451497d7725016df5
tree14dd65c5ff5287fda0e0b83d234734ed511469d6
parentae00a5a88534fd45939f86c12e038da9fa6f9ed6
bpo-40334: Fix shifting of nested f-strings in the new parser (GH-19771)

`JoinedStr`s and `FormattedValue also needs to be shifted, in order to correctly compute the location information of nested f-strings.
Lib/test/test_fstring.py
Parser/pegen/parse_string.c