Fix bug introduced by ast "tranform" change

This commit is contained in:
rocky 2020-02-10 16:13:57 -05:00
parent d2f6223e14
commit bf288b1871

View File

@ -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",