bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. by serhiy-storchaka · Pull Request #1888 · python/cpython

@serhiy-storchaka

…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.

ericvsmith

@serhiy-storchaka

@serhiy-storchaka

ericvsmith

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, 2017
…pressions. (GH-1888) (#2013)

'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)