From 4c2d56318fec16d1d5241cd91d38b59cb65bce83 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 5 Aug 2025 16:19:59 -0700 Subject: [lldb] Drop PY_MINOR_VERSION >= 3 check (NFC) The minimum supported Python version is now 3.8, so there's no supported configuration where the minor version is less than 3. --- lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index 4a45673..82aa022 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -430,13 +430,8 @@ Expected PythonString::AsUTF8() const { } size_t PythonString::GetSize() const { - if (IsValid()) { -#if PY_MINOR_VERSION >= 3 + if (IsValid()) return PyUnicode_GetLength(m_py_obj); -#else - return PyUnicode_GetSize(m_py_obj); -#endif - } return 0; } -- cgit v1.1