Python 3.4 if ifelse decompyling now works.

This commit is contained in:
rocky
2015-12-17 08:10:43 -05:00
parent 2dc8375ed0
commit 87a3c5d687
24 changed files with 45 additions and 15 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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'])

View 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

View File

@@ -0,0 +1 @@
a = b(c=d, e=f)

View File

@@ -0,0 +1 @@
a(b, c)

View File

@@ -0,0 +1,2 @@
for a in b:
c = d

View File

@@ -0,0 +1,2 @@
while a:
b = c