You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
option to show asm and DRY.
Get ready for some 2.3 support
This commit is contained in:
@@ -8,16 +8,15 @@ scanner routine for Python 3.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import xdis
|
||||
|
||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||
# JUMP_OPs = xdis.opcodes.opcode_32.JUMP_OPs
|
||||
from xdis.opcodes import opcode_32 as opc
|
||||
JUMP_OPs = map(lambda op: opc.opname[op], opc.hasjrel + opc.hasjabs)
|
||||
|
||||
from uncompyle6.scanners.scanner3 import Scanner3
|
||||
class Scanner32(Scanner3):
|
||||
|
||||
def __init__(self):
|
||||
super(Scanner3, self).__init__(3.2)
|
||||
def __init__(self, show_asm=False):
|
||||
super(Scanner3, self).__init__(3.2, show_asm)
|
||||
return
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user