diff options
Diffstat (limited to 'cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py')
| -rw-r--r-- | cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py index 2307550aca04..e8bc65cd3fbe 100644 --- a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py +++ b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py @@ -7,7 +7,6 @@ """Interface for communicating with the LLDB debugger via its python interface. """ -import imp import os import shlex from subprocess import CalledProcessError, check_output, STDOUT @@ -18,6 +17,7 @@ from dex.dextIR import FrameIR, LocIR, StepIR, StopReason, ValueIR from dex.dextIR import StackFrame, SourceLocation, ProgramState from dex.utils.Exceptions import DebuggerException, LoadDebuggerException from dex.utils.ReturnCode import ReturnCode +from dex.utils.Imports import load_module class LLDB(DebuggerBase): @@ -82,8 +82,7 @@ class LLDB(DebuggerBase): ) try: - module_info = imp.find_module("lldb", [pythonpath]) - return imp.load_module("lldb", *module_info) + return load_module("lldb", pythonpath) except ImportError as e: msg = str(e) if msg.endswith("not a valid Win32 application."): |
