You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
xdis for Python 3 opcodes
This commit is contained in:
@@ -30,10 +30,9 @@ if PYTHON3:
|
|||||||
else:
|
else:
|
||||||
L65536 = long(65536) # NOQA
|
L65536 = long(65536) # NOQA
|
||||||
|
|
||||||
from uncompyle6.opcodes import (opcode_25, opcode_26, opcode_27,
|
from uncompyle6.opcodes import (opcode_25, opcode_26, opcode_27)
|
||||||
opcode_32, opcode_33, opcode_34)
|
|
||||||
|
|
||||||
from xdis.opcodes import opcode_35
|
from xdis.opcodes import (opcode_32, opcode_33, opcode_34, opcode_35)
|
||||||
|
|
||||||
|
|
||||||
class Code(object):
|
class Code(object):
|
||||||
|
@@ -8,10 +8,10 @@ scanner routine for Python 3.
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import uncompyle6
|
import xdis
|
||||||
|
|
||||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||||
JUMP_OPs = uncompyle6.opcodes.opcode_32.JUMP_OPs
|
JUMP_OPs = xdis.opcodes.opcode_32.JUMP_OPs
|
||||||
|
|
||||||
from uncompyle6.scanners.scanner3 import Scanner3
|
from uncompyle6.scanners.scanner3 import Scanner3
|
||||||
class Scanner32(Scanner3):
|
class Scanner32(Scanner3):
|
||||||
|
@@ -8,10 +8,10 @@ scanner routine for Python 3.
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import uncompyle6
|
import xdis
|
||||||
|
|
||||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||||
JUMP_OPs = uncompyle6.opcodes.opcode_33.JUMP_OPs
|
JUMP_OPs = xdis.opcodes.opcode_33.JUMP_OPs
|
||||||
|
|
||||||
from uncompyle6.scanners.scanner3 import Scanner3
|
from uncompyle6.scanners.scanner3 import Scanner3
|
||||||
class Scanner33(Scanner3):
|
class Scanner33(Scanner3):
|
||||||
|
@@ -8,10 +8,8 @@ scanner routine for Python 3.
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import uncompyle6
|
|
||||||
|
|
||||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||||
from uncompyle6.opcodes.opcode_34 import JUMP_OPs
|
from xdis.opcodes.opcode_34 import JUMP_OPs
|
||||||
|
|
||||||
from uncompyle6.scanners.scanner3 import Scanner3
|
from uncompyle6.scanners.scanner3 import Scanner3
|
||||||
class Scanner34(Scanner3):
|
class Scanner34(Scanner3):
|
||||||
|
Reference in New Issue
Block a user