[accerciser] ipython: seek to 0 after truncating stdout



commit b28c85cc9e9ae2529e38162e64d8f1d414feb9f5
Author: Javier Hernández <jhernandez emergya com>
Date:   Tue Feb 25 02:14:16 2014 +0100

    ipython: seek to 0 after truncating stdout
    
    We need this to leave the stdout ready to be used again

 plugins/ipython_view.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/ipython_view.py b/plugins/ipython_view.py
index 9da3a97..7d579f6 100755
--- a/plugins/ipython_view.py
+++ b/plugins/ipython_view.py
@@ -600,7 +600,8 @@ class IPythonView(ConsoleView, IterableIPShell):
     if rv: rv = rv.strip('\n')
     self.showReturned(rv)
     self.cout.truncate(0)
-    
+    self.cout.seek(0)
+ 
 if __name__ == "__main__":
   window = gtk.Window()
   window.set_default_size(640, 320)


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