You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
47 lines
897 B
Python
47 lines
897 B
Python
# 2.6.9 text_file.py
|
|
# Bugs in 2.6 and 2.7 detecting structure
|
|
def readline (self):
|
|
while 1:
|
|
if self:
|
|
if __file__:
|
|
continue
|
|
|
|
return
|
|
|
|
# From 2.4.6 sre.py
|
|
# Bug has to do with "break" not being recognized
|
|
# and is a JUMP_FORWARD.
|
|
def _parse(a, b, source, state):
|
|
while 1:
|
|
if b:
|
|
while 1:
|
|
break
|
|
else:
|
|
raise
|
|
|
|
def _parse2(source, state):
|
|
while 1:
|
|
if a:
|
|
if b:
|
|
while 1:
|
|
this = 1
|
|
break
|
|
continue
|
|
|
|
while 1:
|
|
if b:
|
|
break
|
|
|
|
x = 3
|
|
|
|
# Bug was in 2.3 decompilation
|
|
def _parse3(source, state):
|
|
while 1:
|
|
if a:
|
|
if b:
|
|
x = 1
|
|
while 1:
|
|
if a:
|
|
break
|
|
raise
|