forked from zrax/pycdc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adrian Haensler
committed
Jul 30, 2022
1 parent
4622609
commit deebbb0
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
test_for_loop_3.8.py -- source test | ||
For-loops have changed in python 3.8. The test and PR | ||
(https://github.com/zrax/pycdc/pull/270) add some support. | ||
It also fixes a problem with nested if- and for blocks. | ||
This source is part of the decompyle test suite. | ||
decompyle is a Python byte-code decompiler | ||
See http://www.goebel-consult.de/decompyle/ for download and | ||
for further information | ||
""" | ||
|
||
if 1 == 1: | ||
print('block1') | ||
if 1 == 1: | ||
for a in 'foo': | ||
print('block2') | ||
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'\ntest_for_loop_3.8.py -- source test\nFor-loops have changed in python 3.8. The test and PR\n(https://github.com/zrax/pycdc/pull/270) add some support.\nIt also fixes a problem with nested if- and for blocks.\n\nThis source is part of the decompyle test suite.\n\ndecompyle is a Python byte-code decompiler\nSee http://www.goebel-consult.de/decompyle/ for download and\nfor further information\n' <EOL> | ||
if 1 == 1 : <EOL> | ||
<INDENT> | ||
print ( 'block1' ) <EOL> | ||
<OUTDENT> | ||
if 1 == 1 : <EOL> | ||
<INDENT> | ||
for a in 'foo' : <EOL> | ||
<INDENT> | ||
print ( 'block2' ) <EOL> | ||
<OUTDENT> | ||
<OUTDENT> | ||
return None <EOL> |