~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2007-04-12 20:36:40 UTC
  • mfrom: (2413 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070412203640-z1jld315288moxvy
[merge] bzr.dev 2413

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import sys
28
28
 
29
29
from bzrlib import errors, ui
 
30
from bzrlib.smart import medium
30
31
from bzrlib.trace import mutter
31
32
from bzrlib.transport import (
32
 
    smart,
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, medium.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(medium.SmartClientMediumRequest):
509
509
    """A SmartClientMediumRequest that works with an HTTP medium."""
510
510
 
511
 
    def __init__(self, medium):
512
 
        smart.SmartClientMediumRequest.__init__(self, medium)
 
511
    def __init__(self, smart_medium):
 
512
        medium.SmartClientMediumRequest.__init__(self, smart_medium)
513
513
        self._buffer = ''
514
514
 
515
515
    def _accept_bytes(self, bytes):