• Tim Peters's avatar
    Merge r26771 from 3.3 branch. · 8af655f2
    Tim Peters authored
    repozo improvement suggested by Toby Dickenson.
    
    Write backups to a temp file first; flush and fsync when done;
    only then rename; in case of a crash, no relevant damaged file
    will be left behind then.  And on Windows, Python's os.fsync()
    is necessary to convince the OS to write anything to disk.
    8af655f2
repozo.py 16.8 KB