/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): Jelmer Vernooij
  • Date: 2019-05-28 22:09:58 UTC
  • mfrom: (7296.2.1 user-agent)
  • Revision ID: breezy.the.bot@gmail.com-20190528220958-t63zhv8p790n3tee
Integrate urllib2_wrappers into http/__init__.py.

Merged from https://code.launchpad.net/~jelmer/brz/integrate-urllib2-wrappers/+merge/367308

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    )
57
57
from ..transport.http import (
58
58
    response,
59
 
    _urllib2_wrappers,
 
59
    HTTPConnection,
60
60
    )
61
61
from .file_utils import (
62
62
    FakeReadFile,
73
73
        return self.readfile
74
74
 
75
75
 
76
 
class FakeHTTPConnection(_urllib2_wrappers.HTTPConnection):
 
76
class FakeHTTPConnection(HTTPConnection):
77
77
 
78
78
    def __init__(self, sock):
79
 
        _urllib2_wrappers.HTTPConnection.__init__(self, 'localhost')
 
79
        HTTPConnection.__init__(self, 'localhost')
80
80
        # Set the socket to bypass the connection
81
81
        self.sock = sock
82
82