/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: 2017-10-26 11:10:38 UTC
  • mfrom: (6791.2.7 python3)
  • Revision ID: jelmer@jelmer.uk-20171026111038-cvils4aykn7ffcju
Merge lp:~jelmer/brz/fix-imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  InvalidHttpResponse.
38
38
"""
39
39
 
40
 
import httplib
 
40
try:
 
41
    import http.client as http_client
 
42
except ImportError:  # python < 3
 
43
    import httplib as http_client
41
44
 
42
45
from .. import (
43
46
    errors,
714
717
        status_and_headers = BytesIO(raw_headers)
715
718
        # Get rid of the status line
716
719
        status_and_headers.readline()
717
 
        msg = httplib.HTTPMessage(status_and_headers)
 
720
        msg = http_client.HTTPMessage(status_and_headers)
718
721
        return msg
719
722
 
720
723
    def get_response(self, a_response):