mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-27 15:10:55 +00:00
Fix bug introduced by ast "tranform" change
This commit is contained in:
parent
d2f6223e14
commit
bf288b1871
@ -290,8 +290,10 @@ class TreeTransform(GenericASTTraversal, object):
|
||||
and n[1].kind == "stmt"
|
||||
):
|
||||
else_suite_stmts = n[0]
|
||||
else:
|
||||
elif len(n) == 1:
|
||||
else_suite_stmts = n
|
||||
else:
|
||||
return node
|
||||
|
||||
if else_suite_stmts[0].kind in (
|
||||
"ifstmt",
|
||||
|
Loading…
Reference in New Issue
Block a user