You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7
This commit is contained in:
@@ -106,7 +106,7 @@ check-bytecode-2:
|
|||||||
# FIXME: Until we shaked out problems with xdis...
|
# FIXME: Until we shaked out problems with xdis...
|
||||||
check-bytecode-3:
|
check-bytecode-3:
|
||||||
$(PYTHON) test_pythonlib.py \
|
$(PYTHON) test_pythonlib.py \
|
||||||
--bytecode-3.4 --bytecode-3.5 --bytecode-3.6 \
|
--bytecode-3.3 --bytecode-3.4 --bytecode-3.5 --bytecode-3.6 \
|
||||||
--bytecode-3.7 --bytecode-3.8
|
--bytecode-3.7 --bytecode-3.8
|
||||||
|
|
||||||
#: Check deparsing on selected bytecode 3.x
|
#: Check deparsing on selected bytecode 3.x
|
||||||
|
@@ -310,8 +310,10 @@ class TreeTransform(GenericASTTraversal, object):
|
|||||||
n = n[0][0]
|
n = n[0][0]
|
||||||
elif len_n == 0:
|
elif len_n == 0:
|
||||||
return node
|
return node
|
||||||
elif n[0].kind in ("lastc_stmt", "lastl_stmt"):
|
|
||||||
|
if n[0].kind in ("lastc_stmt", "lastl_stmt"):
|
||||||
n = n[0]
|
n = n[0]
|
||||||
|
|
||||||
if n[0].kind in (
|
if n[0].kind in (
|
||||||
"ifstmt",
|
"ifstmt",
|
||||||
"iflaststmt",
|
"iflaststmt",
|
||||||
@@ -325,7 +327,6 @@ class TreeTransform(GenericASTTraversal, object):
|
|||||||
old_stmts = n[2]
|
old_stmts = n[2]
|
||||||
else_suite_index = 2
|
else_suite_index = 2
|
||||||
pass
|
pass
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
if (
|
if (
|
||||||
len_n > 1
|
len_n > 1
|
||||||
|
Reference in New Issue
Block a user