]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Jun 2020 19:43:49 +0000 (12:43 -0700)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 19:43:49 +0000 (12:43 -0700)
commitcb0dc52d37a5cc561ad39bc034afe7db9c461768
tree30d1567517db082f620e6ef2b03738e7e4825ff4
parent5193d0a665eb0944faae9fb20e2062cea0dc02e7
bpo-41084: Adjust message when an f-string expression causes a SyntaxError (GH-21084)

Prefix the error message with `fstring: `, when parsing an f-string expression throws a `SyntaxError`.
(cherry picked from commit 2e0a920e9eb540654c0bb2298143b00637dc5961)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Lib/test/test_fstring.py
Misc/NEWS.d/next/Core and Builtins/2020-06-23-15-10-19.bpo-41084.pt3y7F.rst [new file with mode: 0644]
Parser/pegen/pegen.c