diff options
author | Collin Winter <collinw@gmail.com> | 2007-05-18 23:11:24 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-05-18 23:11:24 (GMT) |
commit | 6290305e6722c20e17d3c73bd6a30c6448bead83 (patch) | |
tree | fc3cc9d13179cb407116ebac000400c9c294140a /Lib/compiler | |
parent | 6eb7bede72f044b0b6a73551c04281defc7fc489 (diff) | |
download | cpython-6290305e6722c20e17d3c73bd6a30c6448bead83.zip cpython-6290305e6722c20e17d3c73bd6a30c6448bead83.tar.gz cpython-6290305e6722c20e17d3c73bd6a30c6448bead83.tar.bz2 |
Backport PEP 3110's new 'except' syntax to 2.6.
Diffstat (limited to 'Lib/compiler')
-rw-r--r-- | Lib/compiler/transformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index ac23ad1..77ac776 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -930,7 +930,7 @@ class Transformer: for i in range(3, len(nodelist), 3): node = nodelist[i] if node[0] == symbol.except_clause: - # except_clause: 'except' [expr [',' expr]] */ + # except_clause: 'except' [expr [(',' | 'as') expr]] */ if len(node) > 2: expr1 = self.com_node(node[2]) if len(node) > 4: |