/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: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    )
54
54
from ..sixish import (
55
55
    BytesIO,
 
56
    PY3,
56
57
    )
57
58
from ..transport.http import (
58
59
    response,
725
726
        # Get rid of the status line
726
727
        status_and_headers.readline()
727
728
        msg = parse_headers(status_and_headers)
728
 
        return msg.getheader
 
729
        if PY3:
 
730
            return msg.get
 
731
        else:
 
732
            return msg.getheader
729
733
 
730
734
    def get_response(self, a_response):
731
735
        """Process a supplied response, and return the result."""