We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33e111 commit 32b63b1Copy full SHA for 32b63b1
1 file changed
trepan/processor/command/deparse.py
@@ -14,8 +14,19 @@
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
+import sys
18
+
19
+if (3, 7) <= sys.version_info[:2] <= (3, 8):
20
+ try:
21
+ from decompyle3.semantics.fragments import code_deparse
22
+ except ImportError:
23
+ from uncompyle6.semantics.fragments import code_deparse
24
+else:
25
26
27
from getopt import getopt, GetoptError
-from uncompyle6.semantics.fragments import code_deparse
28
29
30
from trepan.lib.deparse import deparse_and_cache, deparse_offset
31
from pyficache import highlight_string, getlines
32
0 commit comments