bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. by serhiy-storchaka · Pull Request #1888 · python/cpython
…ons. 'invalid character in identifier' now is raised instead of 'f-string: empty expression not allowed' if a subexpression contains only whitespaces and they are not accepted by Python parser.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request
Jun 8, 2017…pressions. (pythonGH-1888) 'invalid character in identifier' now is raised instead of 'f-string: empty expression not allowed' if a subexpression contains only whitespaces and they are not accepted by Python parser. (cherry picked from commit 2e9cd58)
serhiy-storchaka added a commit that referenced this pull request
Jun 8, 2017This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters