You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Python 3.4 if ifelse decompyling now works.
This commit is contained in:
BIN
test/bytecode_2.7/keyword.pyc
Normal file
BIN
test/bytecode_2.7/keyword.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.7/positional.pyc
Normal file
BIN
test/bytecode_2.7/positional.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/for.cpython-32.pyc
Normal file
BIN
test/bytecode_3.2/for.cpython-32.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/if.cpython-32.pyc
Normal file
BIN
test/bytecode_3.2/if.cpython-32.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/ifelse.cpython-32.pyc
Normal file
BIN
test/bytecode_3.2/ifelse.cpython-32.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/keyword.cpython-32.pyc
Normal file
BIN
test/bytecode_3.2/keyword.cpython-32.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/positional.cpython-32.pyc
Normal file
BIN
test/bytecode_3.2/positional.cpython-32.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/while.cpython-32.pyc
Normal file
BIN
test/bytecode_3.2/while.cpython-32.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.4/keyword.cpython-34.pyc
Normal file
BIN
test/bytecode_3.4/keyword.cpython-34.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.4/positional.python-34.pyc
Normal file
BIN
test/bytecode_3.4/positional.python-34.pyc
Normal file
Binary file not shown.
@@ -55,17 +55,19 @@ tests['2.5'] = tests['2.3']
|
||||
tests['2.6'] = tests['2.5']
|
||||
# tests['2.7'] = ['mine'] + tests['2.6']
|
||||
tests['2.7'] = [
|
||||
'source_3.4/branching/ifelse',
|
||||
'source_3.4/branching/if'
|
||||
# 'source_3.4/call_arguments/keyword',
|
||||
# 'source_3.4/call_arguments/positional'
|
||||
'simple-source/branching/ifelse',
|
||||
'simple-source/branching/if'
|
||||
# 'simple-source/call_arguments/keyword',
|
||||
# 'simple-source/call_arguments/positional'
|
||||
]
|
||||
|
||||
tests['3.4'] = [
|
||||
# 'source_3.4/branching/ifelse',
|
||||
# 'source_3.4/branching/if'
|
||||
'source_3.4/call_arguments/keyword',
|
||||
'source_3.4/call_arguments/positional'
|
||||
# 'simple-source/branching/ifelse',
|
||||
# 'simple-source/branching/if'
|
||||
# 'simple-source/call_arguments/keyword',
|
||||
# 'simple-source/call_arguments/positional'
|
||||
'simple-source/looping/for',
|
||||
'simple-source/looping/while'
|
||||
]
|
||||
|
||||
total_tests = len(tests['2.7'])
|
7
test/simple-source/README
Normal file
7
test/simple-source/README
Normal file
@@ -0,0 +1,7 @@
|
||||
Files in this directory contain very simnple constructs that work
|
||||
across all versions of Python.
|
||||
|
||||
Their simnplicity is to try to make it easier to debug grammar
|
||||
and AST walking routines.
|
||||
|
||||
This code originally taken from https://github.com/DarkFenX/uncompyle3
|
1
test/simple-source/call_arguments/keyword.py
Normal file
1
test/simple-source/call_arguments/keyword.py
Normal file
@@ -0,0 +1 @@
|
||||
a = b(c=d, e=f)
|
1
test/simple-source/call_arguments/positional.py
Normal file
1
test/simple-source/call_arguments/positional.py
Normal file
@@ -0,0 +1 @@
|
||||
a(b, c)
|
2
test/simple-source/looping/for.py
Normal file
2
test/simple-source/looping/for.py
Normal file
@@ -0,0 +1,2 @@
|
||||
for a in b:
|
||||
c = d
|
2
test/simple-source/looping/while.py
Normal file
2
test/simple-source/looping/while.py
Normal file
@@ -0,0 +1,2 @@
|
||||
while a:
|
||||
b = c
|
Reference in New Issue
Block a user