Fixed SBValueList to have a __str__ function like all other SB classes. Previously...
authorGreg Clayton <gclayton@apple.com>
Thu, 11 Apr 2013 22:24:25 +0000 (22:24 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 11 Apr 2013 22:24:25 +0000 (22:24 +0000)
llvm-svn: 179327

lldb/scripts/Python/python-extensions.swig

index 29e39ba..1ff0782 100644 (file)
         }
 }
 %extend lldb::SBValueList {
-        PyObject *lldb::SBValueList::__repr__ (){
+        PyObject *lldb::SBValueList::__str__ (){
                 lldb::SBStream description;
                 const size_t n = $self->GetSize();
                 if (n)
                     --desc_len;
                 if (desc_len > 0)
                     return PyString_FromStringAndSize (desc, desc_len);
-                return Py_None;
+                else
+                    return PyString_FromString("");
         }
 }
 %extend lldb::SBWatchpoint {