diff options
author | Collin Winter <collinw@gmail.com> | 2007-05-18 23:11:24 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-05-18 23:11:24 (GMT) |
commit | 6290305e6722c20e17d3c73bd6a30c6448bead83 (patch) | |
tree | fc3cc9d13179cb407116ebac000400c9c294140a /Grammar | |
parent | 6eb7bede72f044b0b6a73551c04281defc7fc489 (diff) | |
download | cpython-6290305e6722c20e17d3c73bd6a30c6448bead83.zip cpython-6290305e6722c20e17d3c73bd6a30c6448bead83.tar.gz cpython-6290305e6722c20e17d3c73bd6a30c6448bead83.tar.bz2 |
Backport PEP 3110's new 'except' syntax to 2.6.
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 83e5058..cdfce69 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: |