diff options
author | Guido van Rossum <guido@python.org> | 2007-01-10 18:51:35 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-01-10 18:51:35 +0000 |
commit | d713b9ecac094a8d70877e51c3a2852553c6f284 (patch) | |
tree | b9880bd1370d220394eb4070cb9921480af1a513 /Grammar | |
parent | f16bc2a26e204536d477cddceaeeb5d6d9657c9e (diff) | |
download | cpython-d713b9ecac094a8d70877e51c3a2852553c6f284.tar.gz |
Some more changes related to the new except syntax and semantics,
by Collin Winter.
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 2 |
1 files changed, 1 insertions, 1 deletions
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: |