summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-09 21:39:57 +0000
committerGuido van Rossum <guido@python.org>1998-04-09 21:39:57 +0000
commita38a0c896561d1ce464b6b32c4d027251b216cae (patch)
treea002c0d1ecf7c530474e2f30c189184710f7c464 /Grammar
parent3d14aea50d168840449a7258ea95243efe656a90 (diff)
downloadcpython-a38a0c896561d1ce464b6b32c4d027251b216cae.tar.gz
Make first raise argument optional
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 73c298ff1f..dabf88e5aa 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -40,7 +40,7 @@ flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt
break_stmt: 'break'
continue_stmt: 'continue'
return_stmt: 'return' [testlist]
-raise_stmt: 'raise' test [',' test [',' test]]
+raise_stmt: 'raise' [test [',' test [',' test]]]
import_stmt: 'import' dotted_name (',' dotted_name)* | 'from' dotted_name 'import' ('*' | NAME (',' NAME)*)
dotted_name: NAME ('.' NAME)*
global_stmt: 'global' NAME (',' NAME)*