~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-06-29 17:19:58 UTC
  • mfrom: (5967.8.4 rm-del-methods)
  • Revision ID: pqm@pqm.ubuntu.com-20110629171958-u8a6lkpw5kdnfm55
(mbp) remove most __del__ methods (Martin Pool)

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)