File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- # Copyright (C) 2017-2018, 2020-2021, 2023 Rocky Bernstein
2+ # Copyright (C) 2017-2018, 2020-2021, 2023, 2025 Rocky Bernstein
33#
44# This program is free software: you can redistribute it and/or modify
55# it under the terms of the GNU General Public License as published by
2121
2222from trepan .processor .command .base_cmd import DebuggerCommand
2323
24+ have_decompiler = True
2425if PYTHON_VERSION_TRIPLE >= (3 , 9 ):
25- pass
26+ have_decopmiler = False
2627else :
27- if (3 , 7 ) <= PYTHON_VERSION_TRIPLE :
28- from decompyle3 .semantics .fragments import deparse_code , deparsed_find
29- else :
30- from uncompyle6 .semantics .fragments import deparse_code , deparsed_find
28+ have_decompiler = True
29+ try :
30+ if (3 , 7 ) <= PYTHON_VERSION_TRIPLE :
31+ from decompyle3 .semantics .fragments import deparse_code , deparsed_find
32+ else :
33+ from uncompyle6 .semantics .fragments import deparse_code , deparsed_find
34+ except Exception :
35+ have_decompiler = False
36+
37+ if have_decompiler :
3138
3239 class DEvalCommand (DebuggerCommand ):
3340 """**deval**
You can’t perform that action at this time.
0 commit comments