diff options
author | Dave Lee <davelee.com@gmail.com> | 2022-08-05 13:35:20 -0600 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2022-08-11 19:06:15 -0700 |
commit | 56f9cfe30c4488aade888905bb6280ecb952a613 (patch) | |
tree | 99a60b9c61a4344203d3e645308bd4e871a7590a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | 256ba7738ea8a07372a82cadd29e9c08fdf9145c (diff) | |
download | llvm-56f9cfe30c4488aade888905bb6280ecb952a613.zip llvm-56f9cfe30c4488aade888905bb6280ecb952a613.tar.gz llvm-56f9cfe30c4488aade888905bb6280ecb952a613.tar.bz2 |
[lldb] Remove uses of six module (NFC)
With lldb (& llvm) requiring Python 3.6+, use of the `six` module can be removed.
Differential Revision: https://reviews.llvm.org/D131304
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 4bfec20..2178db8 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -429,7 +429,7 @@ ScriptInterpreterPythonImpl::ScriptInterpreterPythonImpl(Debugger &debugger) // Reloading modules requires a different syntax in Python 2 and Python 3. // This provides a consistent syntax no matter what version of Python. run_string.Clear(); - run_string.Printf("run_one_line (%s, 'from six.moves import reload_module')", + run_string.Printf("run_one_line (%s, 'from importlib import reload as reload_module')", m_dictionary_name.c_str()); PyRun_SimpleString(run_string.GetData()); |