[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.
This commit is contained in:
Jonas Devlieghere committed 2025-08-05 16:21:22 -07:00
1 parent 600976f4bf
commit 4c2d56318f
1 file changed
+1 -6
@@ -430,13 +430,8 @@ Expected<llvm::StringRef> 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;
}