summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2016-09-11 22:58:20 (GMT)
committerEric V. Smith <eric@trueblade.com>2016-09-11 22:58:20 (GMT)
commit09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee (patch)
tree3fb91f7d4beed603624683ce4ed2507726fb5f29 /Python/ast.c
parent13a6d2834a3e9920bd8f07700bea0919408035bc (diff)
downloadcpython-09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee.zip
cpython-09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee.tar.gz
cpython-09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee.tar.bz2
Make an f-string error message more exact and consistent.
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
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 == '}')) {