/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/smart/medium.py

  • Committer: Robert Collins
  • Date: 2007-04-23 00:28:58 UTC
  • mfrom: (2440 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070423002858-l285r8h8a9jjco64
Merge up with bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006,2007 Canonical Ltd
 
1
# Copyright (C) 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
import os
28
28
import socket
29
29
import sys
 
30
 
30
31
from bzrlib import errors
31
 
from bzrlib.smart.protocol import SmartServerRequestProtocolOne
32
 
 
 
32
from bzrlib.smart import protocol
33
33
try:
34
34
    from bzrlib.transport import ssh
35
35
except errors.ParamikoNotPresent:
66
66
        from sys import stderr
67
67
        try:
68
68
            while not self.finished:
69
 
                protocol = SmartServerRequestProtocolOne(self.backing_transport,
70
 
                                                         self._write_out)
71
 
                self._serve_one_request(protocol)
 
69
                server_protocol = protocol.SmartServerRequestProtocolOne(
 
70
                    self.backing_transport, self._write_out)
 
71
                self._serve_one_request(server_protocol)
72
72
        except Exception, e:
73
73
            stderr.write("%s terminating on exception %s\n" % (self, e))
74
74
            raise
523
523
        """
524
524
        return self._medium._read_bytes(count)
525
525
 
526