~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Robert Collins
  • Date: 2010-01-08 06:33:05 UTC
  • mto: This revision was merged to the branch mainline in revision 4944.
  • Revision ID: robertc@robertcollins.net-20100108063305-qxgq2t7prgp0op1j
Adjust errors.py to fix missing references to 'warn'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
27
27
from cStringIO import StringIO
28
28
import warnings
29
29
 
30
 
from bzrlib import (
31
 
    urlutils,
32
 
    )
33
30
from bzrlib.errors import (
34
31
    FileExists,
35
32
    LockError,
45
42
    register_transport,
46
43
    Server,
47
44
    Transport,
48
 
    unregister_transport,
49
45
    )
 
46
import bzrlib.urlutils as urlutils
50
47
 
51
48
 
52
49
 
317
314
            result._files = self._files
318
315
            result._locks = self._locks
319
316
            return result
320
 
        self._memory_factory = memory_factory
321
 
        register_transport(self._scheme, self._memory_factory)
 
317
        register_transport(self._scheme, memory_factory)
322
318
 
323
319
    def stop_server(self):
324
320
        # unregister this server
325
 
        unregister_transport(self._scheme, self._memory_factory)
 
321
        # XXX: why isn't this done? -- mbp 20100106
 
322
        pass
326
323
 
327
324
    def get_url(self):
328
325
        """See bzrlib.transport.Server.get_url."""