mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 05:00:07 +00:00
commit
9172f82bae
@ -293,7 +293,7 @@ class TreeTransform(GenericASTTraversal, object):
|
||||
else_suite_index = 1
|
||||
|
||||
len_n = len(n)
|
||||
if len_n == 1 == len(n[0]) and n[0] == "stmt":
|
||||
if len_n == 1 and type(n[0]) is SyntaxTree and len(n[0]) == 1 and n[0] == "stmt":
|
||||
n = n[0][0]
|
||||
elif len_n == 0:
|
||||
return node
|
||||
|
Loading…
Reference in New Issue
Block a user