summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2006-03-19 22:12:03 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2006-03-19 22:12:03 (GMT)
commit210256e9bacadaeee1194047074cc1146da48806 (patch)
treef2981f8b0ac0353b8b1702282ec3657c0e2000e5
parentc612a5dbcaa6ddf4d1843d9aefb2891d6f72b2cd (diff)
downloadcpython-210256e9bacadaeee1194047074cc1146da48806.zip
cpython-210256e9bacadaeee1194047074cc1146da48806.tar.gz
cpython-210256e9bacadaeee1194047074cc1146da48806.tar.bz2
Source file f.flush() after writing; trying to avoid lossage if user
kills GUI. Report from Bruce Sherwood.
-rw-r--r--Lib/idlelib/IOBinding.py1
-rw-r--r--Lib/idlelib/NEWS.txt9
2 files changed, 10 insertions, 0 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index 4d67292..dd7e8da 100644
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -374,6 +374,7 @@ class IOBinding:
try:
f = open(filename, "wb")
f.write(chars)
+ f.flush()
f.close()
return True
except IOError, msg:
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index c48b945..3dd53f2 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,3 +1,12 @@
+What's New in IDLE 1.1.3?
+=========================
+
+*Release date:
+
+- Source file f.flush() after writing; trying to avoid lossage if user
+ kills GUI. Reported by Bruce Sherwood.
+
+
What's New in IDLE 1.1.2?
=========================