~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-11 10:13:36 UTC
  • mfrom: (6021.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110711101336-k498o31t08szd9e9
(vila) Move news entries from 2.4 to 2.5 for patches landed after 2.4
 fork (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
            if stat.S_IMODE(st.st_mode) != new_mode:
81
81
                os.chmod(self.tmpfilename, new_mode)
82
82
 
 
83
    def _get_closed(self):
 
84
        symbol_versioning.warn('AtomicFile.closed deprecated in bzr 0.10',
 
85
                               DeprecationWarning, stacklevel=2)
 
86
        return self._fd is None
 
87
 
 
88
    closed = property(_get_closed)
 
89
 
83
90
    def __repr__(self):
84
91
        return '%s(%r)' % (self.__class__.__name__,
85
92
                           self.realfilename)