~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Robey Pointer
  • Date: 2006-07-01 19:03:33 UTC
  • mfrom: (1829 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: robey@lag.net-20060701190333-f58465aec4bd3412
merge from bzr.dev

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):