From 16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 10 Jan 2007 18:51:35 +0000 Subject: Some more changes related to the new except syntax and semantics, by Collin Winter. --- Grammar/Grammar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Grammar') diff --git a/Grammar/Grammar b/Grammar/Grammar index 701a1ff05a..2f07b5edd6 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -79,7 +79,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 ['as' test]] +except_clause: 'except' [test ['as' NAME]] suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT # Backward compatibility cruft to support: -- cgit v1.2.1