[d-feet] Use pformat to show method call results



commit 3b3ea12da734b59399ff494423c544bbfdbf5fac
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date:   Sun Jul 14 19:34:53 2013 +0200

    Use pformat to show method call results

 src/dfeet/executemethoddialog.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dfeet/executemethoddialog.py b/src/dfeet/executemethoddialog.py
index 73200e6..0bb5386 100644
--- a/src/dfeet/executemethoddialog.py
+++ b/src/dfeet/executemethoddialog.py
@@ -108,7 +108,7 @@ class ExecuteMethodDialog:
             #output result
             if result:
                 self.source_textview.get_buffer().set_text(str(result))
-                self.prettyprint_textview.get_buffer().set_text(str(result.unpack()[0]))
+                self.prettyprint_textview.get_buffer().set_text(pformat(result.unpack()[0]))
             else:
                 self.prettyprint_textview.get_buffer().set_text(
                     'This method did not return anything')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]