Files
python-uncompyle6/test/simple_source/bug36/05-for-ifelse.py
rocky 535df1592e Another 3.6 control-flow bug...
and add source to some previous bytecode tests
2018-03-31 19:28:35 -04:00

14 lines
351 B
Python

# From 3.6.4 configparser.py
# Bug in 3.6 was handling "else" with compound
# if. there is no POP_BLOCK and
# there are several COME_FROMs before the else
def _read(self, fp, a, value, f):
for line in fp:
for prefix in a:
fp()
if (value and fp and
prefix > 5):
f()
else:
f()