/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 breezy/tests/test_http_response.py

  • Committer: Jelmer Vernooij
  • Date: 2018-08-21 19:28:52 UTC
  • mfrom: (7078 work)
  • mto: This revision was merged to the branch mainline in revision 7101.
  • Revision ID: jelmer@jelmer.uk-20180821192852-ipy6m8q95bbst223
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
try:
41
41
    import http.client as http_client
 
42
    parse_headers = http_client.parse_headers
42
43
except ImportError:  # python < 3
43
44
    import httplib as http_client
 
45
    parse_headers = http_client.HTTPMessage
44
46
 
45
47
from .. import (
46
48
    errors,
719
721
        status_and_headers = BytesIO(raw_headers)
720
722
        # Get rid of the status line
721
723
        status_and_headers.readline()
722
 
        msg = http_client.HTTPMessage(status_and_headers)
 
724
        msg = parse_headers(status_and_headers)
723
725
        return msg
724
726
 
725
727
    def get_response(self, a_response):