commit | f7b1e461567e5e3fa3ba46f589d9edc1b45b2dd0 | [log] [tgz] |
---|---|---|
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | Tue May 26 03:32:18 2020 +0300 |
committer | GitHub <noreply@github.com> | Tue May 26 01:32:18 2020 +0100 |
tree | ae35c88616222dd863201ea8549ac09c30d9b407 | |
parent | 2602d97a0ae92b2d320909024e901c202b003e14 [diff] |
bpo-38964: Print correct filename on a SyntaxError in an fstring (GH-20399) When a `SyntaxError` in the expression part of a fstring is found, the filename attribute of the `SyntaxError` is always `<fstring>`. With this commit, it gets changed to always have the name of the file the fstring resides in. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>