summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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?
=========================