~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-18 02:21:57 UTC
  • mfrom: (1787 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1794.
  • Revision ID: john@arbash-meinel.com-20060618022157-6e33aa9b67c25e4f
[merge] bzr.dev 1787

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 S_IFREG, S_IFDIR
 
27
from stat import *
28
28
from cStringIO import StringIO
29
 
import warnings
30
29
 
31
30
from bzrlib.errors import TransportError, NoSuchFile, FileExists, LockError
32
31
from bzrlib.trace import mutter
261
260
    def __del__(self):
262
261
        # Should this warn, or actually try to cleanup?
263
262
        if self.transport:
264
 
            warnings.warn("MemoryLock %r not explicitly unlocked" % (self.path,))
 
263
            warn("MemoryLock %r not explicitly unlocked" % (self.path,))
265
264
            self.unlock()
266
265
 
267
266
    def unlock(self):