~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Ian Clatworthy
  • Date: 2007-12-17 01:45:32 UTC
  • mto: (3119.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3120.
  • Revision ID: ian.clatworthy@internode.on.net-20071217014532-dmbv2mm72nzq0ai6
follow-up tweaks to bzr.dev integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
from bzrlib import (
32
32
    errors,
33
 
    osutils,
34
33
    symbol_versioning,
35
34
    )
36
35
from bzrlib.smart.protocol import (
178
177
        self.finished = True
179
178
 
180
179
    def _write_out(self, bytes):
181
 
        osutils.send_all(self.socket, bytes)
 
180
        self.socket.sendall(bytes)
182
181
 
183
182
 
184
183
class SmartServerPipeStreamMedium(SmartServerStreamMedium):
525
524
    def _accept_bytes(self, bytes):
526
525
        """See SmartClientMedium.accept_bytes."""
527
526
        self._ensure_connection()
528
 
        osutils.send_all(self._socket, bytes)
 
527
        self._socket.sendall(bytes)
529
528
 
530
529
    def disconnect(self):
531
530
        """See SmartClientMedium.disconnect()."""