You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
More Python 3.0 custom "if" statment handling.
This commit is contained in:
@@ -181,6 +181,12 @@ def customize_for_version3(self, version):
|
||||
# the iteration variable. These rules we can ignore
|
||||
# since we pick up the iteration variable some other way and
|
||||
# we definitely don't include in the source _[dd].
|
||||
TABLE_DIRECT.update({
|
||||
'ifstmt30': ( '%|if %c:\n%+%c%-',
|
||||
(0, "testexpr_then"),
|
||||
(1, "_ifstmts_jump30") ),
|
||||
})
|
||||
|
||||
def n_comp_iter(node):
|
||||
if node[0] == "expr":
|
||||
n = node[0][0]
|
||||
|
Reference in New Issue
Block a user