now = time.time()
fileutil.write(replacement_path, file_contents)
- os.utimes(replacement_path, (now, now - cls.FUDGE_SECONDS))
+ os.utime(replacement_path, (now, now - cls.FUDGE_SECONDS))
if is_conflict:
cls._rename_conflicted_file(path, replacement_path)
else:
@classmethod
def _rename_conflicted_file(self, path, replacement_path):
conflict_path = path + u".conflict"
- fileutil.rename_no_overwrite(replacement_path, conflict_path)
\ No newline at end of file
+ fileutil.rename_no_overwrite(replacement_path, conflict_path)