/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/transport/memory.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-22 18:24:25 UTC
  • mfrom: (1803 +trunk)
  • mto: (1793.3.6 bundle-fixes)
  • mto: This revision was merged to the branch mainline in revision 1806.
  • Revision ID: john@arbash-meinel.com-20060622182425-6f45cb7acd587216
[merge] bzr.dev 1804 and fix conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import os
25
25
import errno
26
26
import re
27
 
from stat import *
 
27
from stat import S_IFREG, S_IFDIR
28
28
from cStringIO import StringIO
 
29
import warnings
29
30
 
30
31
from bzrlib.errors import TransportError, NoSuchFile, FileExists, LockError
31
32
from bzrlib.trace import mutter
260
261
    def __del__(self):
261
262
        # Should this warn, or actually try to cleanup?
262
263
        if self.transport:
263
 
            warn("MemoryLock %r not explicitly unlocked" % (self.path,))
 
264
            warnings.warn("MemoryLock %r not explicitly unlocked" % (self.path,))
264
265
            self.unlock()
265
266
 
266
267
    def unlock(self):