Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 41773:f19e631be101 legacy-trunk
Backport PEP 3110's new 'except' syntax to 2.6.
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Fri, 18 May 2007 23:11:24 +0000 |
| parents | 7a4f174df844 |
| children | c8b0e3b8b456 |
line wrap: on
line diff
--- a/Python/ast.c Fri May 18 05:47:16 2007 +0000 +++ b/Python/ast.c Fri May 18 23:11:24 2007 +0000 @@ -2765,7 +2765,7 @@ 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);
