You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Mini-sync with decompyle3:
go over runtests.sh 3.8 excludes
This commit is contained in:
@@ -82,7 +82,12 @@ class TreeTransform(GenericASTTraversal, object):
|
||||
than the code field is seen and used.
|
||||
"""
|
||||
|
||||
code = find_code_node(node, -2).attr
|
||||
if self.version >= 3.7:
|
||||
code_index = -3
|
||||
else:
|
||||
code_index = -2
|
||||
|
||||
code = find_code_node(node, code_index).attr
|
||||
|
||||
if (
|
||||
node[-1].pattr != "closure"
|
||||
@@ -177,6 +182,7 @@ class TreeTransform(GenericASTTraversal, object):
|
||||
RAISE_VARARGS_1,
|
||||
],
|
||||
)
|
||||
node.transformed_by="n_ifstmt"
|
||||
pass
|
||||
pass
|
||||
else:
|
||||
|
Reference in New Issue
Block a user