You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
pydisassemble disassemble without grammar mangling
Some other small cleanups as well
This commit is contained in:
@@ -8,16 +8,19 @@ scanner routine for Python 3.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import uncompyle6.scanners.scanner3 as scan3
|
||||
from uncompyle6.scanners.scanner3 import Scanner3
|
||||
from uncompyle6.opcodes.opcode_34 import opname as opnames
|
||||
|
||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||
from uncompyle6.opcodes.opcode_34 import JUMP_OPs
|
||||
|
||||
class Scanner34(scan3.Scanner3):
|
||||
class Scanner34(Scanner3):
|
||||
def disassemble(self, co, classname=None, code_objects={}):
|
||||
return self.disassemble3(co, opnames, classname, code_objects)
|
||||
|
||||
def disassemble_native(self, co, classname=None, code_objects={}):
|
||||
return self.disassemble3_native(co, opnames, classname, code_objects)
|
||||
|
||||
if __name__ == "__main__":
|
||||
import inspect
|
||||
co = inspect.currentframe().f_code
|
||||
|
Reference in New Issue
Block a user