summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-09 21:13:50 (GMT)
committerGitHub <noreply@github.com>2021-05-09 21:13:50 (GMT)
commit9a0e65c8e05fdcd2207650d216ebdacdf0a025e9 (patch)
tree98debb9543f1bfb22862c8b7a9409daf5fa33f24 /Parser
parentc3eb3c18f1472b739db486c99f7f2125c4809680 (diff)
downloadcpython-9a0e65c8e05fdcd2207650d216ebdacdf0a025e9.zip
cpython-9a0e65c8e05fdcd2207650d216ebdacdf0a025e9.tar.gz
cpython-9a0e65c8e05fdcd2207650d216ebdacdf0a025e9.tar.bz2
bpo-43149: Correct the syntax error message for multiple exception types (GH-25996) GH-25997)
Automerge-Triggered-By: GH:pablogsal (cherry picked from commit 6692dc1ca99fb34a19d0a4b93cf8e10619490001) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index 6958963..2ca628b 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -19978,7 +19978,7 @@ invalid_except_stmt_rule(Parser *p)
)
{
D(fprintf(stderr, "%*c+ invalid_except_stmt[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'except' expression ',' expressions ['as' NAME] ':'"));
- _res = RAISE_SYNTAX_ERROR_STARTING_FROM ( a , "exception group must be parenthesized" );
+ _res = RAISE_SYNTAX_ERROR_STARTING_FROM ( a , "multiple exception types must be parenthesized" );
if (_res == NULL && PyErr_Occurred()) {
p->error_indicator = 1;
D(p->level--);