Patch 1330 by Christian Heimes (with some TLC applied by myself).
Move most of the messiness with truncate() on Windows into _fileio.c. Still keep the flush() call in io.py though.
G
Guido van Rossum committed
57233cb3f9d59233711e63034cc1e84360f0da15
Parent: 61ec0d3