/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

Start splitting bzrlib/transport/smart.py into a package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
from bzrlib.transport import (
43
43
    get_transport,
44
44
    register_transport,
 
45
    smart,
45
46
    Server,
46
 
    smart,
47
47
    Transport,
48
48
    )
49
49
from bzrlib.transport.http.response import (HttpMultipartRangeResponse,
50
50
                                            HttpRangeResponse)
 
51
from bzrlib.transport.smart import medium
51
52
from bzrlib.ui import ui_factory
52
53
 
53
54
 
125
126
    return m
126
127
 
127
128
 
128
 
class HttpTransportBase(Transport, smart.SmartClientMedium):
 
129
class HttpTransportBase(Transport, medium.SmartClientMedium):
129
130
    """Base class for http implementations.
130
131
 
131
132
    Does URL parsing, etc, but not any network IO.
432
433
        return body_filelike
433
434
 
434
435
 
435
 
class SmartClientHTTPMediumRequest(smart.SmartClientMediumRequest):
 
436
class SmartClientHTTPMediumRequest(medium.SmartClientMediumRequest):
436
437
    """A SmartClientMediumRequest that works with an HTTP medium."""
437
438
 
438
 
    def __init__(self, medium):
439
 
        smart.SmartClientMediumRequest.__init__(self, medium)
 
439
    def __init__(self, client_medium):
 
440
        medium.SmartClientMediumRequest.__init__(self, client_medium)
440
441
        self._buffer = ''
441
442
 
442
443
    def _accept_bytes(self, bytes):