~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Martin Pool
  • Date: 2006-06-20 03:57:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620035711-400bb6b6bc6ff95b
Add pyflakes makefile target; fix many warnings

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