summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-09 21:39:57 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-09 21:39:57 (GMT)
commitd295f120ae6bd624eaac9032b70fad0aec110597 (patch)
treeb35a80e21cc3bceff0cc766d15582cf30c02225f /Grammar
parent926f13a0819eb3d40a0d0fd38ff25ef0c7d489b3 (diff)
downloadcpython-d295f120ae6bd624eaac9032b70fad0aec110597.zip
cpython-d295f120ae6bd624eaac9032b70fad0aec110597.tar.gz
cpython-d295f120ae6bd624eaac9032b70fad0aec110597.tar.bz2
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 73c298f..dabf88e 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)*