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. --- Grammar/Grammar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Grammar') diff --git a/Grammar/Grammar b/Grammar/Grammar index 83e50582fb..cdfce69ac5 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -85,7 +85,7 @@ try_stmt: ('try' ':' suite with_stmt: 'with' test [ with_var ] ':' suite with_var: 'as' expr # NB compile.c makes sure that the default except clause is last -except_clause: 'except' [test [',' test]] +except_clause: 'except' [test [('as' | ',') test]] suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT # Backward compatibility cruft to support: -- cgit v1.2.1