/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: Breezy landing bot
  • Author(s): Matthew Fuller
  • Date: 2019-03-24 22:52:17 UTC
  • mfrom: (7295.1.1 fix-2.7-with-future)
  • Revision ID: breezy.the.bot@gmail.com-20190324225217-t23dq33upgnsdoj1
Fix importing on python2.7 with future.

Merged from https://code.launchpad.net/~fullermd/brz/fix-2.7-with-future/+merge/365007

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
except ImportError:  # python < 3 without future
 
43
    import httplib as http_client
 
44
 
 
45
try:
42
46
    parse_headers = http_client.parse_headers
43
 
except ImportError:  # python < 3
44
 
    import httplib as http_client
 
47
except AttributeError:  # python 2
45
48
    parse_headers = http_client.HTTPMessage
46
49
 
47
50
from .. import (