/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

  • Committer: Andrew Bennetts
  • Date: 2007-04-05 15:20:57 UTC
  • mto: This revision was merged to the branch mainline in revision 2402.
  • Revision ID: andrew.bennetts@canonical.com-20070405152057-gokz8syll1lk2nrm
Rename bzrlib/transport/smart.py to bzrlib/transport/remote.py.

First part of the code reorganisation from the hpss branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from bzrlib import errors, ui
30
30
from bzrlib.trace import mutter
31
31
from bzrlib.transport import (
32
 
    smart,
 
32
    remote,
33
33
    Transport,
34
34
    )
35
35
 
113
113
    return m
114
114
 
115
115
 
116
 
class HttpTransportBase(Transport, smart.SmartClientMedium):
 
116
class HttpTransportBase(Transport, remote.SmartClientMedium):
117
117
    """Base class for http implementations.
118
118
 
119
119
    Does URL parsing, etc, but not any network IO.
505
505
        return body_filelike
506
506
 
507
507
 
508
 
class SmartClientHTTPMediumRequest(smart.SmartClientMediumRequest):
 
508
class SmartClientHTTPMediumRequest(remote.SmartClientMediumRequest):
509
509
    """A SmartClientMediumRequest that works with an HTTP medium."""
510
510
 
511
511
    def __init__(self, medium):
512
 
        smart.SmartClientMediumRequest.__init__(self, medium)
 
512
        remote.SmartClientMediumRequest.__init__(self, medium)
513
513
        self._buffer = ''
514
514
 
515
515
    def _accept_bytes(self, bytes):