You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
PY3: COME_FROM -> COME_FROM_FINALLY as appropriate
We now have all WITH_ op jumps associated in the grammar Also, some COME_FROM_LOOP grammar fixes
This commit is contained in:
@@ -208,12 +208,9 @@ class Scanner3(Scanner):
|
||||
come_from_name = 'COME_FROM'
|
||||
if (inst.offset in offset_action):
|
||||
action = offset_action[inst.offset]
|
||||
if (action.type == 'end'
|
||||
if (action.type == 'end'
|
||||
and (self.opName(jump_offset)[len('SETUP_'):]
|
||||
== action.name)
|
||||
# After the grammar is fully adjusted, remove the below
|
||||
# test
|
||||
and action.name in ['EXCEPT', 'LOOP', 'WITH']):
|
||||
== action.name)):
|
||||
come_from_name = '%s_%s' % (
|
||||
(come_from_name, action.name))
|
||||
pass
|
||||
|
Reference in New Issue
Block a user