Files
python-uncompyle6/test/simple_source/bug36/04_try_finally.py
rocky afb90dd12e 3.6+ try/finally bugs
Another day another 3.6 bug fix attempted
2018-02-27 10:37:18 -05:00

21 lines
399 B
Python

# From 3.6 _pyio.py
# Bug was in "return" not having "COME_FROM"
# and in 1st try/finally no END_FINALLY (which really
# hooks into the control-flow analysis).
# The 2nd try/finally has an END_FINALLY although still
# no "COME_FROM".
def getvalue(self):
try:
return 3
finally:
return 1
def getvalue1(self):
try:
return 4
finally:
pass
return 2