~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

Merge HEAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    mutter("failed to import pycurl: %s", e)
41
41
    raise DependencyNotPresent('pycurl', e)
42
42
 
 
43
try:
 
44
    # see if we can actually initialize PyCurl - sometimes it will load but
 
45
    # fail to start up due to this bug:
 
46
    #  
 
47
    #   32. (At least on Windows) If libcurl is built with c-ares and there's
 
48
    #   no DNS server configured in the system, the ares_init() call fails and
 
49
    #   thus curl_easy_init() fails as well. This causes weird effects for
 
50
    #   people who use numerical IP addresses only.
 
51
    #
 
52
    # reported by Alexander Belchenko, 2006-04-26
 
53
    pycurl.Curl()
 
54
except pycurl.error, e:
 
55
    mutter("failed to initialize pycurl: %s", e)
 
56
    raise DependencyNotPresent('pycurl', e)
 
57
 
43
58
 
44
59
register_urlparse_netloc_protocol('http+pycurl')
45
60