Commits

Kurt B. Kaiser committed 9910ff6

Source file f.flush() after writing; trying to avoid lossage if user
kills GUI. Report from Bruce Sherwood.

Comments (0)

Files changed (2)

Lib/idlelib/IOBinding.py

         try:
             f = open(filename, "wb")
             f.write(chars)
+            f.flush()
             f.close()
             return True
         except IOError, msg:

Lib/idlelib/NEWS.txt

+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?
 =========================