Author: David Spickett Date: 2026-08-10T13:11:35Z New Revision: 9dfc65d43ae1fb83eda4684e3fe4c9a84a574a14
URL: https://github.com/llvm/llvm-project/commit/9dfc65d43ae1fb83eda4684e3fe4c9a84a574a14 DIFF: https://github.com/llvm/llvm-project/commit/9dfc65d43ae1fb83eda4684e3fe4c9a84a574a14.diff LOG: [lldb] Remove Python 2 compatibility in PythonDataObjects.cpp (#215268) Our minimum Python is 3.8. Added: Modified: lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index b423cc68a2230..ad665a5c08eb5 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -1059,10 +1059,7 @@ bool PythonException::Matches(PyObject *exc) const { const char read_exception_script[] = R"( import sys from traceback import print_exception -if sys.version_info.major < 3: - from StringIO import StringIO -else: - from io import StringIO +from io import StringIO def main(exc_type, exc_value, tb): f = StringIO() print_exception(exc_type, exc_value, tb, file=f) _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
