summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-08-23 23:29:47 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-08-23 23:29:47 (GMT)
commit65e3ecb3e229822d8d01b4ae1d26b300ebd79566 (patch)
treeece6db86843daa4bf4825f03eee6291dbe5c728f /Doc/reference
parent004e87048acaf0339e5ec0e564e4de45c3627eb4 (diff)
downloadcpython-65e3ecb3e229822d8d01b4ae1d26b300ebd79566.zip
cpython-65e3ecb3e229822d8d01b4ae1d26b300ebd79566.tar.gz
cpython-65e3ecb3e229822d8d01b4ae1d26b300ebd79566.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 94b07f0..5dd17eb 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -234,7 +234,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`