~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

(gz) Provide st_uid and st_gid on _Win32Stat so it looks more like a normal
 stat object (Alexander Belchenko)

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
            # the common case is that we won't, though.
79
79
            st = os.fstat(self._fd)
80
80
            if stat.S_IMODE(st.st_mode) != new_mode:
81
 
                os.chmod(self.tmpfilename, new_mode)
 
81
                osutils.chmod_if_possible(self.tmpfilename, new_mode)
82
82
 
83
83
    def _get_closed(self):
84
84
        symbol_versioning.warn('AtomicFile.closed deprecated in bzr 0.10',