diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-05-08 18:24:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 18:24:41 (GMT) |
commit | 6692dc1ca99fb34a19d0a4b93cf8e10619490001 (patch) | |
tree | b40089c354338ace9a5fcd3c9739288b20077ad4 /Parser/parser.c | |
parent | 873275e64aae4caa6ddcea28ca3a026f37659d58 (diff) | |
download | cpython-6692dc1ca99fb34a19d0a4b93cf8e10619490001.zip cpython-6692dc1ca99fb34a19d0a4b93cf8e10619490001.tar.gz cpython-6692dc1ca99fb34a19d0a4b93cf8e10619490001.tar.bz2 |
bpo-43149: Correct the syntax error message for multiple exception types (GH-25996)
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Parser/parser.c')
-rw-r--r-- | Parser/parser.c | 2 |
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--); |