diff options
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<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; } |