/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/transport/http/_urllib.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from __future__ import absolute_import
18
18
 
19
 
from bzrlib import (
 
19
from ... import (
20
20
    errors,
21
21
    trace,
22
22
    )
23
 
from bzrlib.transport import http
 
23
from .. import http
24
24
# TODO: handle_response should be integrated into the http/__init__.py
25
 
from bzrlib.transport.http.response import handle_response
26
 
from bzrlib.transport.http._urllib2_wrappers import (
 
25
from .response import handle_response
 
26
from ._urllib2_wrappers import (
27
27
    Opener,
28
28
    Request,
29
29
    )
71
71
        request.proxy_auth = proxy_auth
72
72
 
73
73
        if self._debuglevel > 0:
74
 
            print 'perform: %s base: %s, url: %s' % (request.method, self.base,
75
 
                                                     request.get_full_url())
 
74
            print('perform: %s base: %s, url: %s' % (request.method, self.base,
 
75
                                                     request.get_full_url()))
76
76
        response = self._opener.open(request)
77
77
        if self._get_connection() is not request.connection:
78
78
            # First connection or reconnection
169
169
 
170
170
def get_test_permutations():
171
171
    """Return the permutations to be used in testing."""
172
 
    from bzrlib.tests import (
 
172
    from breezy.tests import (
173
173
        features,
174
174
        http_server,
175
175
        )
176
176
    permutations = [(HttpTransport_urllib, http_server.HttpServer_urllib),]
177
177
    if features.HTTPSServerFeature.available():
178
 
        from bzrlib.tests import (
 
178
        from breezy.tests import (
179
179
            https_server,
180
180
            ssl_certs,
181
181
            )