~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-10 09:04:32 UTC
  • mfrom: (4105.1.1 http-send-experiment)
  • Revision ID: pqm@pqm.ubuntu.com-20090310090432-vcvk5yyhx3c6rfzv
(andrew) Clean-up _ReportingSocket.send/sendall slightly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
        self.sock = sock
106
106
        self._report_activity = report_activity
107
107
 
108
 
    def send(self, s, *args):
109
 
        self.sock.send(s, *args)
110
 
        self._report_activity(len(s), 'write')
111
 
 
112
108
    def sendall(self, s, *args):
113
 
        self.sock.send(s, *args)
 
109
        self.sock.sendall(s, *args)
114
110
        self._report_activity(len(s), 'write')
115
111
 
116
112
    def recv(self, *args):