/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-15 08:25:00 UTC
  • mfrom: (5609.48.5 2.3)
  • mto: (6015.3.3 2.4)
  • mto: This revision was merged to the branch mainline in revision 6027.
  • Revision ID: v.ladeuil+lp@free.fr-20110715082500-fz2zg5wav3mc3vda
Merge 2.3 into 2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from bzrlib.lazy_import import lazy_import
21
21
lazy_import(globals(), """
22
22
import stat
23
 
import socket
24
23
import warnings
25
24
 
26
25
from bzrlib import (
119
118
        """Discard the file unless already committed."""
120
119
        if self._fd is not None:
121
120
            self.abort()
122
 
 
123
 
    def __del__(self):
124
 
        if self._fd is not None:
125
 
            warnings.warn("%r leaked" % self)