~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Gordon Tyler
  • Date: 2011-06-30 21:00:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6007.
  • Revision ID: gordon@doxxx.net-20110630210038-bzscps46jgcqtkr0
Use known executables for win32 and other platforms in test_exe_on_path.

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)