commit | 6290305e6722c20e17d3c73bd6a30c6448bead83 | [log] [tgz] |
---|---|---|
author | Collin Winter <collinw@gmail.com> | Fri May 18 23:11:24 2007 +0000 |
committer | Collin Winter <collinw@gmail.com> | Fri May 18 23:11:24 2007 +0000 |
tree | fc3cc9d13179cb407116ebac000400c9c294140a | |
parent | 6eb7bede72f044b0b6a73551c04281defc7fc489 [diff] [blame] |
Backport PEP 3110's new 'except' syntax to 2.6.
diff --git a/Python/ast.c b/Python/ast.c index ace4950..27c3efa 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -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);