From b358614d95660f15626bc2fe54956b5ff74429d5 2010-01-13 04:03:48
From: Fernando Perez <Fernando.Perez@berkeley.edu>
Date: 2010-01-13 04:03:48
Subject: [PATCH] Add writeln convenience method to Term streams.

---

diff --git a/IPython/utils/genutils.py b/IPython/utils/genutils.py
index d27db86..0e4a7a2 100644
--- a/IPython/utils/genutils.py
+++ b/IPython/utils/genutils.py
@@ -76,6 +76,10 @@ class IOStream:
                 print >> sys.stderr, \
                       'ERROR - failed to write data to stream:', self.stream
 
+    def writeln(self, data):
+        self.write(data)
+        self.write('\n')        
+                
     def close(self):
         pass