You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
We want to remove a final return from a module, but otherwise not. Note we'll no lonager be able to verify functools.pyc as there is now a return after a raise statement. That will have to be delt with separately. May address Issue #17.
12 lines
332 B
Python
12 lines
332 B
Python
# Bug in uncompyle6 and pycdc for (some) Python 3 bytecodes.
|
|
# Problem is JUMP_IF_FALSE is optimized away leaving
|
|
# the unreachible LOAD_CONST below
|
|
|
|
# Disassembly of lambda is:
|
|
# 0 LOAD_CONST 2: 2
|
|
# 3 RETURN_VALUE
|
|
# 4 LOAD_CONST 3: 3
|
|
# 7 RETURN_VALUE
|
|
|
|
lambda: 2 if True else 3
|