From 09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Sun, 11 Sep 2016 18:58:20 -0400 Subject: Make an f-string error message more exact and consistent. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 092031cc8c4..765d24e11b8 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 == '}')) { -- cgit v1.2.3