You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Fix bug introduced by ast "tranform" change
This commit is contained in:
@@ -290,8 +290,10 @@ class TreeTransform(GenericASTTraversal, object):
|
|||||||
and n[1].kind == "stmt"
|
and n[1].kind == "stmt"
|
||||||
):
|
):
|
||||||
else_suite_stmts = n[0]
|
else_suite_stmts = n[0]
|
||||||
else:
|
elif len(n) == 1:
|
||||||
else_suite_stmts = n
|
else_suite_stmts = n
|
||||||
|
else:
|
||||||
|
return node
|
||||||
|
|
||||||
if else_suite_stmts[0].kind in (
|
if else_suite_stmts[0].kind in (
|
||||||
"ifstmt",
|
"ifstmt",
|
||||||
|
Reference in New Issue
Block a user