/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/request.py

  • Committer: Andrew Bennetts
  • Date: 2009-01-27 07:08:25 UTC
  • mto: This revision was merged to the branch mainline in revision 3981.
  • Revision ID: andrew.bennetts@canonical.com-20090127070825-4yicgkrd91k93fox
Tweaks suggested by review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
            if not root_client_path.endswith('/'):
71
71
                root_client_path += '/'
72
72
        self._root_client_path = root_client_path
73
 
        self._body_bytes = ''
 
73
        self._body_chunks = []
74
74
 
75
75
    def _check_enabled(self):
76
76
        """Raises DisabledMethod if this method is disabled."""
111
111
 
112
112
        The do() method is still called, and must have returned None.
113
113
        """
114
 
        self._body_bytes += chunk_bytes
 
114
        self._body_chunks.append(chunk_bytes)
115
115
 
116
116
    def do_end(self):
117
117
        """Called when the end of the request has been received."""
118
 
        body_bytes = self._body_bytes
119
 
        self._body_bytes = None
 
118
        body_bytes = ''.join(self._body_chunks)
 
119
        self._body_chunks = None
120
120
        return self.do_body(body_bytes)
121
121
    
122
122
    def translate_client_path(self, client_path):