mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Backport PEP 3110's new 'except' syntax to 2.6.
This commit is contained in:
parent
6eb7bede72
commit
6290305e67
6 changed files with 12 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue