Start supporting PyPy 3.2

Add some PyPy 2.7 and PyPy 3.2 bytecode files
This commit is contained in:
rocky 2016-07-24 04:16:54 -04:00
parent 9754d27597
commit 21683719e1
52 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -53,7 +53,7 @@ class Scanner(object):
self.show_asm = show_asm self.show_asm = show_asm
if version in PYTHON_VERSIONS: if version in PYTHON_VERSIONS:
if is_pypy: if is_pypy and version != 3.2:
v_str = "opcode_pypy%s" % (int(version * 10)) v_str = "opcode_pypy%s" % (int(version * 10))
else: else:
v_str = "opcode_%s" % (int(version * 10)) v_str = "opcode_%s" % (int(version * 10))

View File

@ -46,8 +46,8 @@ import uncompyle6.scanner as scan
class Scanner3(scan.Scanner): class Scanner3(scan.Scanner):
def __init__(self, version, show_asm=None): def __init__(self, version, show_asm=None, is_pypy=False):
super(Scanner3, self).__init__(version, show_asm) super(Scanner3, self).__init__(version, show_asm, is_pypy)
# Create opcode classification sets # Create opcode classification sets
# Note: super initilization above initializes self.opc # Note: super initilization above initializes self.opc

View File

@ -15,8 +15,8 @@ JUMP_OPs = map(lambda op: opc.opname[op], opc.hasjrel + opc.hasjabs)
from uncompyle6.scanners.scanner3 import Scanner3 from uncompyle6.scanners.scanner3 import Scanner3
class Scanner32(Scanner3): class Scanner32(Scanner3):
def __init__(self, show_asm=None): def __init__(self, show_asm=None, is_pypy=False):
Scanner3.__init__(self, 3.2, show_asm) Scanner3.__init__(self, 3.2, show_asm, is_pypy)
return return
pass pass