You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
LOAD_CONST -> LOAD_CODE where appropriate
This commit is contained in:
@@ -361,6 +361,8 @@ class Scanner3(Scanner):
|
||||
opname = "LOAD_SETCOMP"
|
||||
elif const.co_name == "<listcomp>":
|
||||
opname = "LOAD_LISTCOMP"
|
||||
else:
|
||||
opname = "LOAD_CODE"
|
||||
# verify() uses 'pattr' for comparison, since 'attr'
|
||||
# now holds Code(const) and thus can not be used
|
||||
# for comparison (todo: think about changing this)
|
||||
|
Reference in New Issue
Block a user