]> granicus.if.org Git - python/commit
[3.6] bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. ...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Jun 2017 21:38:06 +0000 (00:38 +0300)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2017 21:38:06 +0000 (00:38 +0300)
commit570b1c971c31cd08dbf060f4e21636c40aa47786
treef13cb58e5792e0a969e4dc6c59f0624ec9b9cbe2
parentb319d09ee4427aac1ee8f298692127d34ef57dc0
[3.6] bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. (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)
Lib/test/test_fstring.py
Python/ast.c