xdis for Python 3 opcodes

This commit is contained in:
rocky
2016-05-28 01:14:18 -04:00
parent 64191aa2d3
commit b18b3e5d47
4 changed files with 7 additions and 10 deletions

View File

@@ -30,10 +30,9 @@ if PYTHON3:
else:
L65536 = long(65536) # NOQA
from uncompyle6.opcodes import (opcode_25, opcode_26, opcode_27,
opcode_32, opcode_33, opcode_34)
from uncompyle6.opcodes import (opcode_25, opcode_26, opcode_27)
from xdis.opcodes import opcode_35
from xdis.opcodes import (opcode_32, opcode_33, opcode_34, opcode_35)
class Code(object):

View File

@@ -8,10 +8,10 @@ scanner routine for Python 3.
from __future__ import print_function
import uncompyle6
import xdis
# 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
class Scanner32(Scanner3):

View File

@@ -8,10 +8,10 @@ scanner routine for Python 3.
from __future__ import print_function
import uncompyle6
import xdis
# 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
class Scanner33(Scanner3):

View File

@@ -8,10 +8,8 @@ scanner routine for Python 3.
from __future__ import print_function
import uncompyle6
# 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
class Scanner34(Scanner3):