Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use replace instead of rename in localetools.py
On Unix, if target exists and it is a file, rename silently replaces it if the user has permission. However, on Windows, if the target exists, FileExistError will be raised. With replace, if target points to an existing file or empty directory, it will be unconditionally replaced. Change-Id: I2774152fec78a00c4ca6c9d1b927e503df2f2e84 Reviewed-by: Mårten Nordheim <[email protected]> Reviewed-by: Edward Welbourne <[email protected]> (cherry picked from commit eff8e6b) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
- Loading branch information