~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-05 14:53:57 UTC
  • mfrom: (6344.1.1 dev_2.4_integration)
  • Revision ID: pqm@pqm.ubuntu.com-20111205145357-aesrpb6b49pxzym8
(gz) Merge 2.4 into bzr.dev (Martin Packman)

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 __repr__(self):
84
84
        return '%s(%r)' % (self.__class__.__name__,