From 6290305e6722c20e17d3c73bd6a30c6448bead83 Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Fri, 18 May 2007 23:11:24 +0000 Subject: Backport PEP 3110's new 'except' syntax to 2.6. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index ace4950402..27c3efaac8 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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); -- cgit v1.2.1