summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-08-23 23:29:40 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-08-23 23:29:40 (GMT)
commita58b255a8ef1aa21982df49e029ee2acd2c67e20 (patch)
tree907a9fa26e924bae0582f9675e13d06e7bdf6781 /Doc/reference
parent4426870275f0b12bc9b0d56de761505098dd172b (diff)
downloadcpython-a58b255a8ef1aa21982df49e029ee2acd2c67e20.zip
cpython-a58b255a8ef1aa21982df49e029ee2acd2c67e20.tar.gz
cpython-a58b255a8ef1aa21982df49e029ee2acd2c67e20.tar.bz2
Issue #22243: fix except grammar in reference.
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 08230fa..1251024 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -218,7 +218,7 @@ for a group of statements:
.. productionlist::
try_stmt: try1_stmt | try2_stmt
try1_stmt: "try" ":" `suite`
- : ("except" [`expression` [("as" | ",") `target`]] ":" `suite`)+
+ : ("except" [`expression` [("as" | ",") `identifier`]] ":" `suite`)+
: ["else" ":" `suite`]
: ["finally" ":" `suite`]
try2_stmt: "try" ":" `suite`