diff Lib/idlelib/OutputWindow.py @ 78276:f72965374b2a 3.2

Issue #7163: Propagate return value of sys.stdout.write. Patch by Roger Serwy.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 25 Jul 2012 11:32:26 +0200
parents 9895483e9601
children 66643fcf6ee9
line wrap: on
line diff
--- a/Lib/idlelib/OutputWindow.py	Wed Jul 25 10:47:20 2012 +0200
+++ b/Lib/idlelib/OutputWindow.py	Wed Jul 25 11:32:26 2012 +0200
@@ -40,6 +40,7 @@
         self.text.insert(mark, s, tags)
         self.text.see(mark)
         self.text.update()
+        return len(s)
 
     def writelines(self, lines):
         for line in lines: