mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
Backport PEP 3110's new 'except' syntax to 2.6.
This commit is contained in:
parent
6eb7bede72
commit
6290305e67
6 changed files with 12 additions and 7 deletions
|
@ -2765,7 +2765,7 @@ ast_for_for_stmt(struct compiling *c, const node *n)
|
|||
static excepthandler_ty
|
||||
ast_for_except_clause(struct compiling *c, const node *exc, node *body)
|
||||
{
|
||||
/* except_clause: 'except' [test [',' test]] */
|
||||
/* except_clause: 'except' [test [(',' | 'as') test]] */
|
||||
REQ(exc, except_clause);
|
||||
REQ(body, suite);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue