~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from bzrlib.lazy_import import lazy_import
34
34
lazy_import(globals(), """
35
35
import errno
36
 
from collections import deque
37
36
from stat import S_ISDIR
38
 
import unittest
39
37
import urllib
40
38
import urlparse
41
 
import warnings
42
39
 
43
 
import bzrlib
44
40
from bzrlib import (
45
41
    errors,
46
42
    osutils,
50
46
""")
51
47
 
52
48
from bzrlib.symbol_versioning import (
53
 
        deprecated_passed,
54
49
        deprecated_method,
55
50
        deprecated_function,
56
51
        DEPRECATED_PARAMETER,
57
 
        zero_eight,
58
 
        zero_eleven,
 
52
        one_four,
59
53
        zero_ninety,
60
54
        )
61
55
from bzrlib.trace import (
62
 
    note,
63
56
    mutter,
64
 
    warning,
65
57
    )
66
58
from bzrlib import registry
67
59
 
613
605
        """
614
606
        return self.get(relpath).read()
615
607
 
 
608
    @deprecated_method(one_four)
616
609
    def get_smart_client(self):
617
610
        """Return a smart client for this transport if possible.
618
611
 
633
626
        """
634
627
        raise errors.NoSmartMedium(self)
635
628
 
 
629
    @deprecated_method(one_four)
636
630
    def get_shared_medium(self):
637
631
        """Return a smart client shared medium for this transport if possible.
638
632
 
1804
1798
                        'bzrlib.transport.fakevfat',
1805
1799
                        'FakeVFATTransportDecorator')
1806
1800
 
 
1801
register_transport_proto('nosmart+')
 
1802
register_lazy_transport('nosmart+', 'bzrlib.transport.nosmart',
 
1803
                        'NoSmartTransportDecorator')
 
1804
 
1807
1805
# These two schemes were registered, but don't seem to have an actual transport
1808
1806
# protocol registered
1809
1807
for scheme in ['ssh', 'bzr+loopback']: