diff options
author | Guido van Rossum <guido@python.org> | 2007-01-10 18:51:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-01-10 18:51:35 (GMT) |
commit | 16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9 (patch) | |
tree | 459a125a265abb16399baeea398ab116b7bf4f9b /Grammar | |
parent | b940e113bf90ff71b0ef57414ea2beea9d2a4bc0 (diff) | |
download | cpython-16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9.zip cpython-16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9.tar.gz cpython-16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9.tar.bz2 |
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 701a1ff..2f07b5e 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: |