[Lldb-commits] [lldb] 2c96596 - [lldb] Remove Python 2 compatibility code in embedded_interpreter.py
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 13 06:46:39 PDT 2025
Author: David Spickett
Date: 2025-10-13T13:46:21Z
New Revision: 2c9659689097e15764d0aef7d995aa490819624c
URL: https://github.com/llvm/llvm-project/commit/2c9659689097e15764d0aef7d995aa490819624c
DIFF: https://github.com/llvm/llvm-project/commit/2c9659689097e15764d0aef7d995aa490819624c.diff
LOG: [lldb] Remove Python 2 compatibility code in embedded_interpreter.py
LLDB requires Python >= 3.8.
https://docs.python.org/3/whatsnew/3.0.html#library-changes
explains the renaming in Python 3.0.
Added:
Modified:
lldb/source/Interpreter/embedded_interpreter.py
Removed:
################################################################################
diff --git a/lldb/source/Interpreter/embedded_interpreter.py b/lldb/source/Interpreter/embedded_interpreter.py
index a487592ef1aee..cdf166a4d1a23 100644
--- a/lldb/source/Interpreter/embedded_interpreter.py
+++ b/lldb/source/Interpreter/embedded_interpreter.py
@@ -1,9 +1,5 @@
import sys
-
-if sys.version_info[0] < 3:
- import __builtin__ as builtins
-else:
- import builtins
+import builtins
import code
import lldb
import traceback
More information about the lldb-commits
mailing list