You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
22 lines
613 B
Python
22 lines
613 B
Python
# From 2.7 test_normalize.py
|
|
# Bug has to do with finding the end of the tryelse block. I think thrown
|
|
# off by the "continue". In instructions the COME_FROM for END_FINALLY
|
|
# was at the wrong offset because some sort of "rtarget" was adjust.
|
|
|
|
# When control flow is in place this logic in the code will be simplified
|
|
def test_main(self, c1):
|
|
for line in self:
|
|
try:
|
|
c1 = 6
|
|
except:
|
|
if c1:
|
|
try:
|
|
c1 = 5
|
|
except:
|
|
pass
|
|
else:
|
|
c1 = 1
|
|
continue
|
|
|
|
pass
|