You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
And reinstate source to a current 3.3 bug (which we don't detect). But at least it is noted for future work.
19 lines
442 B
Python
19 lines
442 B
Python
# From 3.4 mailbox.py
|
|
# Bug is not not getting control structure right
|
|
# specifically the 2nd elif not line
|
|
def _generate_toc(line):
|
|
while 1:
|
|
if line.startswith('2'):
|
|
line = 5
|
|
while 1:
|
|
if line:
|
|
line = 6
|
|
break
|
|
elif not line:
|
|
line = 7
|
|
break
|
|
elif not line:
|
|
break
|
|
|
|
return 1
|