From e3720515ae86935a23d268009f4bdfa77fbc2dda Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 21 Jun 2020 20:19:44 -0400 Subject: [PATCH] Adjust for newer xdis --- __pkginfo__.py | 2 +- uncompyle6/main.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/__pkginfo__.py b/__pkginfo__.py index 35e586c4..ff206581 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -69,7 +69,7 @@ entry_points = { ]} ftp_url = None install_requires = ["spark-parser >= 1.8.9, < 1.9.0", - "xdis >= 4.6.1, < 4.8.0"] + "xdis >= 4.7.0, <5.1.0"] license = "GPL3" mailing_list = "python-debugger@googlegroups.com" diff --git a/uncompyle6/main.py b/uncompyle6/main.py index 62151205..efd4107c 100644 --- a/uncompyle6/main.py +++ b/uncompyle6/main.py @@ -119,12 +119,10 @@ def decompile( mapstream = _get_outstream(mapstream) deparsed = deparse_code_with_map( - bytecode_version, co, out, - showasm, - showast, - showgrammar, + bytecode_version, + debug_opts, code_objects=code_objects, is_pypy=is_pypy, )