/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/transport/http/_pycurl.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
from cStringIO import StringIO
37
37
import httplib
38
38
 
39
 
import bzrlib
40
 
from bzrlib import (
 
39
import breezy
 
40
from breezy import (
41
41
    debug,
42
42
    errors,
43
43
    trace,
44
44
    )
45
 
from bzrlib.transport.http import (
 
45
from breezy.transport.http import (
46
46
    ca_bundle,
47
47
    HttpTransportBase,
48
48
    response,
299
299
 
300
300
 
301
301
    def _raise_curl_http_error(self, curl, info=None, body=None):
302
 
        """Common curl->bzrlib error translation.
 
302
        """Common curl->breezy error translation.
303
303
 
304
304
        Some methods may choose to override this for particular cases.
305
305
 
362
362
 
363
363
    def _set_curl_options(self, curl):
364
364
        """Set options for all requests"""
365
 
        ua_str = 'bzr/%s (pycurl: %s)' % (bzrlib.__version__, pycurl.version)
 
365
        ua_str = 'bzr/%s (pycurl: %s)' % (breezy.__version__, pycurl.version)
366
366
        curl.setopt(pycurl.USERAGENT, ua_str)
367
367
        curl.setopt(pycurl.VERBOSE, 1)
368
368
        curl.setopt(pycurl.DEBUGFUNCTION, self._debug_cb)
431
431
 
432
432
def get_test_permutations():
433
433
    """Return the permutations to be used in testing."""
434
 
    from bzrlib.tests import features
435
 
    from bzrlib.tests import http_server
 
434
    from breezy.tests import features
 
435
    from breezy.tests import http_server
436
436
    permutations = [(PyCurlTransport, http_server.HttpServer_PyCurl),]
437
437
    if features.HTTPSServerFeature.available():
438
 
        from bzrlib.tests import (
 
438
        from breezy.tests import (
439
439
            https_server,
440
440
            ssl_certs,
441
441
            )