File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lldb/source/Plugins/ScriptInterpreter/Python Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ bool PythonList::Check(PyObject *py_obj) {
539539
540540uint32_t PythonList::GetSize () const {
541541 if (IsValid ())
542- return PyList_GET_SIZE (m_py_obj);
542+ return PyList_Size (m_py_obj);
543543 return 0 ;
544544}
545545
@@ -618,7 +618,7 @@ bool PythonTuple::Check(PyObject *py_obj) {
618618
619619uint32_t PythonTuple::GetSize () const {
620620 if (IsValid ())
621- return PyTuple_GET_SIZE (m_py_obj);
621+ return PyTuple_Size (m_py_obj);
622622 return 0 ;
623623}
624624
@@ -899,7 +899,7 @@ bool PythonFile::Check(PyObject *py_obj) {
899899const char *PythonException::toCString () const {
900900 if (!m_repr_bytes)
901901 return " unknown exception" ;
902- return PyBytes_AS_STRING (m_repr_bytes);
902+ return PyBytes_AsString (m_repr_bytes);
903903}
904904
905905PythonException::PythonException (const char *caller) {
You can’t perform that action at this time.
0 commit comments