summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-10 18:51:35 +0000
committerGuido van Rossum <guido@python.org>2007-01-10 18:51:35 +0000
commitd713b9ecac094a8d70877e51c3a2852553c6f284 (patch)
treeb9880bd1370d220394eb4070cb9921480af1a513 /Grammar
parentf16bc2a26e204536d477cddceaeeb5d6d9657c9e (diff)
downloadcpython-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/Grammar2
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: