[d-feet/listbox: 2/2] Use pformat to show method call results
- From: Thomas Bechtold <toabctl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet/listbox: 2/2] Use pformat to show method call results
- Date: Sun, 14 Jul 2013 17:35:55 +0000 (UTC)
commit c26d5e3c37e5019bada88220c772e7fc310bd93d
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]