Tweaks to the Python reference and example command to use the preferred print style and the (finally available :-) SetError API



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@186122 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/www/python-reference.html b/www/python-reference.html
index 8b65d4a..d247cfc 100755
--- a/www/python-reference.html
+++ b/www/python-reference.html
@@ -437,7 +437,7 @@
 import shlex

 

 def ls(debugger, command, result, internal_dict):

-    result.PutCString(commands.getoutput('/bin/ls %s' % command))

+    print >>result, (commands.getoutput('/bin/ls %s' % command))

 

 <font color=green># And the initialization code to add your commands </font>

 def __lldb_init_module(debugger, internal_dict):