bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (#1888)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Jun 2017 20:43:54 +0000 (23:43 +0300)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2017 20:43:54 +0000 (23:43 +0300)
commit2e9cd5825c5ccdbb6f65a57c0c7941078e003c14
tree1f39984ce8de33ad6f1da69e34e5e09b9161823c
parent29adc13bd797d9c9e7fcb893a7c49ce7f7ad388c
bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (#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.
Lib/test/test_fstring.py
Python/ast.c