You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
23 lines
672 B
Python
23 lines
672 B
Python
# Copyright (c) 2017 by Rocky Bernstein
|
|
"""
|
|
Python PyPy 3.2 decompiler scanner.
|
|
|
|
Does some additional massaging of xdis-disassembled instructions to
|
|
make things easier for decompilation.
|
|
"""
|
|
|
|
import uncompyle6.scanners.scanner35 as scan
|
|
|
|
# bytecode verification, verify(), uses JUMP_OPS from here
|
|
from xdis.opcodes import opcode_35 as opc # is this right?
|
|
JUMP_OPs = opc.JUMP_OPS
|
|
|
|
# We base this off of 3.5
|
|
class ScannerPyPy35(scan.Scanner35):
|
|
def __init__(self, show_asm):
|
|
# There are no differences in initialization between
|
|
# pypy 3.5 and 3.5
|
|
scan.Scanner35.__init__(self, show_asm, is_pypy=True)
|
|
self.version = 3.5
|
|
return
|