~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2007-12-24 13:29:30 UTC
  • mto: (3146.3.1 179368) (3156.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3158.
  • Revision ID: v.ladeuil+lp@free.fr-20071224132930-on2606aabyvv5mjj
Cleanups.

* bzrlib/tests/test_http.py:
(load_tests): Make it clearer that we are using test classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
                pending += len(data)
146
146
            if pending:
147
147
                trace.mutter(
148
 
                    # FIXME: this message is bogus if the server didn't give the
149
 
                    # length, there is no way we can know how many bytes are
150
 
                    # left !
 
148
                    # FIXME: this message is bogus if the server didn't give
 
149
                    # the length, there is no way we can know how many bytes
 
150
                    # are left !
151
151
                    "bogus http server didn't give body length,"
152
152
                    "%s bytes left on the socket",
153
153
                    pending)
181
181
        return self._response
182
182
 
183
183
    def cleanup_pipe(self):
184
 
        """Make the connection believe the response has been fully processed."""
 
184
        """Read the remaining bytes of the last response if any."""
185
185
        if self._response is not None:
186
186
            pending = self._response.finish()
187
187
            # Warn the user (once)