Fixed SBValueList to have a __str__ function like all other SB classes. Previously this was done as __repr__.

llvm-svn: 179327
This commit is contained in:
Greg Clayton 2013-04-11 22:24:25 +00:00
parent 39da3efdd6
commit dda8c7d56f
1 changed files with 3 additions and 2 deletions

View File

@ -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 {