From: Greg Clayton Date: Thu, 11 Apr 2013 22:24:25 +0000 (+0000) Subject: Fixed SBValueList to have a __str__ function like all other SB classes. Previously... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dda8c7d56f9f95b1ea54bf5c1f1ae761ab383298;p=platform%2Fupstream%2Fllvm.git Fixed SBValueList to have a __str__ function like all other SB classes. Previously this was done as __repr__. llvm-svn: 179327 --- diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig index 29e39ba..1ff07829 100644 --- a/lldb/scripts/Python/python-extensions.swig +++ b/lldb/scripts/Python/python-extensions.swig @@ -489,7 +489,7 @@ } } %extend lldb::SBValueList { - PyObject *lldb::SBValueList::__repr__ (){ + PyObject *lldb::SBValueList::__str__ (){ lldb::SBStream description; const size_t n = $self->GetSize(); if (n) @@ -507,7 +507,8 @@ --desc_len; if (desc_len > 0) return PyString_FromStringAndSize (desc, desc_len); - return Py_None; + else + return PyString_FromString(""); } } %extend lldb::SBWatchpoint {