Skip to content

Commit 4c2d563

Browse files
committed
[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.
1 parent 600976f commit 4c2d563

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,8 @@ Expected<llvm::StringRef> PythonString::AsUTF8() const {
430430
}
431431

432432
size_t PythonString::GetSize() const {
433-
if (IsValid()) {
434-
#if PY_MINOR_VERSION >= 3
433+
if (IsValid())
435434
return PyUnicode_GetLength(m_py_obj);
436-
#else
437-
return PyUnicode_GetSize(m_py_obj);
438-
#endif
439-
}
440435
return 0;
441436
}
442437

0 commit comments

Comments
 (0)