From 210256e9bacadaeee1194047074cc1146da48806 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Sun, 19 Mar 2006 22:12:03 +0000 Subject: Source file f.flush() after writing; trying to avoid lossage if user kills GUI. Report from Bruce Sherwood. --- Lib/idlelib/IOBinding.py | 1 + Lib/idlelib/NEWS.txt | 9 +++++++++ 2 files changed, 10 insertions(+) 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? ========================= -- cgit v0.12