b8126f8d24
On Windows os.replace sets the MOVEFILE_REPLACE_EXISTING flag for MoveFileEx. On POSIX it's the same as os.rename.