diff options
author | Greg Clayton <gclayton@apple.com> | 2013-04-11 22:24:25 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-04-11 22:24:25 +0000 |
commit | dda8c7d56f9f95b1ea54bf5c1f1ae761ab383298 (patch) | |
tree | 1e2c8b72e75608e61048e0f38bd08bf243ea140e /lldb/scripts/Python/python-extensions.swig | |
parent | 39da3efdd6af58a7fbe81b5039d39348ffb20c07 (diff) | |
download | bcm5719-llvm-dda8c7d56f9f95b1ea54bf5c1f1ae761ab383298.tar.gz bcm5719-llvm-dda8c7d56f9f95b1ea54bf5c1f1ae761ab383298.zip |
Fixed SBValueList to have a __str__ function like all other SB classes. Previously this was done as __repr__.
llvm-svn: 179327
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
-rw-r--r-- | lldb/scripts/Python/python-extensions.swig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig index 29e39ba366c..1ff07829248 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 { |