Rev 6263: Keep using pycurl for https if available to lower the risks. in file:///home/vila/src/bzr/reviews/urllib-verifies-ssl-certs/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Jan 20 13:15:16 UTC 2012
At file:///home/vila/src/bzr/reviews/urllib-verifies-ssl-certs/
------------------------------------------------------------
revno: 6263
revision-id: v.ladeuil+lp at free.fr-20120120131515-1t71dstfjptwd02c
parent: v.ladeuil+lp at free.fr-20120120130710-rc4qtzx1mzwcx703
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: urllib-verifies-ssl-certs
timestamp: Fri 2012-01-20 14:15:15 +0100
message:
Keep using pycurl for https if available to lower the risks.
-------------- next part --------------
=== modified file 'bzrlib/transport/__init__.py'
--- a/bzrlib/transport/__init__.py 2012-01-04 23:51:16 +0000
+++ b/bzrlib/transport/__init__.py 2012-01-20 13:15:15 +0000
@@ -1782,15 +1782,15 @@
help="Read-only access of branches exported on the web.")
register_transport_proto('https://',
help="Read-only access of branches exported on the web using SSL.")
-# The default http implementation is urllib
+# The default http implementation is urllib, but https uses pycurl if available
register_lazy_transport('http://', 'bzrlib.transport.http._pycurl',
'PyCurlTransport')
-register_lazy_transport('https://', 'bzrlib.transport.http._pycurl',
- 'PyCurlTransport')
register_lazy_transport('http://', 'bzrlib.transport.http._urllib',
'HttpTransport_urllib')
register_lazy_transport('https://', 'bzrlib.transport.http._urllib',
'HttpTransport_urllib')
+register_lazy_transport('https://', 'bzrlib.transport.http._pycurl',
+ 'PyCurlTransport')
register_transport_proto('ftp://', help="Access using passive FTP.")
register_lazy_transport('ftp://', 'bzrlib.transport.ftp', 'FtpTransport')
More information about the bazaar-commits
mailing list