~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-15 09:04:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6029.
  • Revision ID: v.ladeuil+lp@free.fr-20110715090454-9f9uq2hdrx1sg8tr
Remove the deprecated AtomicFile._get_closed() method and its associated test.

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
 
 
90
83
    def __repr__(self):
91
84
        return '%s(%r)' % (self.__class__.__name__,
92
85
                           self.realfilename)