Skip to content

Commit 2de3ecb

Browse files
committed
Get ready for release 3.7.7
1 parent 247287c commit 2de3ecb

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
3.7.7
2+
=====
3+
4+
* Better handling of invalid bytecode magic
5+
* Python 3.8 "try" with a "return" in "finally". Issue #67
6+
* Support running from 3.9 and 3.10 although we do not support those bytecodes
7+
18
3.7.6
29
=====
310

__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]
4848
}
4949
ftp_url = None
50-
install_requires = ["spark-parser >= 1.8.9, < 1.9.0", "xdis >= 6.0.1,<6.1.0"]
50+
install_requires = ["spark-parser >= 1.8.9, < 1.9.0", "xdis >= 6.0.2,<6.1.0"]
5151

5252
license = "GPL3"
5353
mailing_list = "[email protected]"

decompyle3/scanner.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ def __init__(self, version: tuple, show_asm=None, is_pypy=False):
7575
self.is_pypy = is_pypy
7676

7777
if version in PYTHON_VERSIONS:
78+
v_str = f"""opcode_{version_tuple_to_str(version, start=0, end=2, delimiter="")}"""
7879
if is_pypy:
79-
v_str = "opcode_%spypy" % ("".join([str(v) for v in version]))
80-
else:
81-
v_str = "opcode_%s" % ("".join([str(v) for v in version]))
82-
exec("from xdis.opcodes import %s" % v_str)
80+
v_str += "pypy"
81+
exec(f"""from xdis.opcodes import {v_str}""")
8382
exec("self.opc = %s" % v_str)
8483
else:
8584
raise TypeError("%s is not a Python version I know about" % version)
@@ -506,7 +505,7 @@ def get_scanner(version, is_pypy=False, show_asm=None):
506505

507506
# Pick up appropriate scanner
508507
if version[:2] in PYTHON_VERSIONS:
509-
v_str = "".join([str(v) for v in version[:2]])
508+
v_str = version_tuple_to_str(version, start=0, end=2, delimiter="")
510509
try:
511510
import importlib
512511

decompyle3/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# This file is suitable for sourcing inside bash as
1414
# well as importing into Python
1515
# fmt: off
16-
__version__="3.7.6" # noqa
16+
__version__="3.7.7" # noqa

0 commit comments

Comments
 (0)