]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Source file f.flush() after writing; trying to avoid lossage if user
authorKurt B. Kaiser <kbk@shore.net>
Sun, 19 Mar 2006 22:12:03 +0000 (22:12 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sun, 19 Mar 2006 22:12:03 +0000 (22:12 +0000)
 kills GUI.  Report from Bruce Sherwood.

Lib/idlelib/IOBinding.py
Lib/idlelib/NEWS.txt

index 4d67292353804edc3f1b0ccacdfd13807644e670..dd7e8da7a6eff1302e84a4dfe433c86863bb07e4 100644 (file)
@@ -374,6 +374,7 @@ class IOBinding:
         try:
             f = open(filename, "wb")
             f.write(chars)
+            f.flush()
             f.close()
             return True
         except IOError, msg:
index c48b94577201b55feaf1a1d39ed6243a5ab36e72..3dd53f226e61142c3cc081625651ce373868acb5 100644 (file)
@@ -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?
 =========================