~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Jonathan Riddell
  • Date: 2011-06-30 11:14:06 UTC
  • mfrom: (6002 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6003.
  • Revision ID: jriddell@canonical.com-20110630111406-eimf301w6x92xkk7
mergeĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        """Discard the file unless already committed."""
119
119
        if self._fd is not None:
120
120
            self.abort()
121
 
 
122
 
    def __del__(self):
123
 
        if self._fd is not None:
124
 
            warnings.warn("%r leaked" % self)