summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/OutputWindow.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-07-25 09:32:26 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-07-25 09:32:26 (GMT)
commit30d5e6c13fc988af2a6c0f8f0cdf43092c241e8f (patch)
tree2dbc99ce7436b2336806842c1baff29750cbd0ee /Lib/idlelib/OutputWindow.py
parentc882b7c51ab4b76bdf44cf4dab5ca1b55ccb2155 (diff)
downloadcpython-30d5e6c13fc988af2a6c0f8f0cdf43092c241e8f.zip
cpython-30d5e6c13fc988af2a6c0f8f0cdf43092c241e8f.tar.gz
cpython-30d5e6c13fc988af2a6c0f8f0cdf43092c241e8f.tar.bz2
Issue #7163: Propagate return value of sys.stdout.write.
Patch by Roger Serwy.
Diffstat (limited to 'Lib/idlelib/OutputWindow.py')
-rw-r--r--Lib/idlelib/OutputWindow.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py
index 565cc9b..cba9013 100644
--- a/Lib/idlelib/OutputWindow.py
+++ b/Lib/idlelib/OutputWindow.py
@@ -40,6 +40,7 @@ class OutputWindow(EditorWindow):
self.text.insert(mark, s, tags)
self.text.see(mark)
self.text.update()
+ return len(s)
def writelines(self, lines):
for line in lines: