diff options
author | Eric V. Smith <eric@trueblade.com> | 2016-09-11 22:58:20 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2016-09-11 22:58:20 (GMT) |
commit | 09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee (patch) | |
tree | 3fb91f7d4beed603624683ce4ed2507726fb5f29 /Python | |
parent | 13a6d2834a3e9920bd8f07700bea0919408035bc (diff) | |
download | cpython-09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee.zip cpython-09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee.tar.gz cpython-09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee.tar.bz2 |
Make an f-string error message more exact and consistent.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 092031c..765d24e 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -4419,7 +4419,7 @@ fstring_find_expr(const char **str, const char *end, int raw, int recurse_lvl, } else if (ch == '#') { /* Error: can't include a comment character, inside parens or not. */ - ast_error(c, n, "f-string cannot include '#'"); + ast_error(c, n, "f-string expression part cannot include '#'"); return -1; } else if (nested_depth == 0 && (ch == '!' || ch == ':' || ch == '}')) { |