~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: John Arbash Meinel
  • Date: 2012-09-14 07:22:49 UTC
  • mfrom: (6015.57.3 2.4)
  • mto: (6015.57.7 2.4)
  • mto: This revision was merged to the branch mainline in revision 6579.
  • Revision ID: john@arbash-meinel.com-20120914072249-rvpderuqqme7sy88
Merge bzr/2.4 (6072) into client-reconnect code.

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',