/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/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-08 00:00:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6672.
  • Revision ID: jelmer@jelmer.uk-20170608000028-e3ggtt4wjbcjh91j
Drop pycurl support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    register_transport_provider( ) ( and the "lazy" variant )
104
104
 
105
105
    This is needed because:
106
 
    a) a single provider can support multiple protocols ( like the ftp
107
 
    provider which supports both the ftp:// and the aftp:// protocols )
108
 
    b) a single protocol can have multiple providers ( like the http://
109
 
    protocol which is supported by both the urllib and pycurl provider )
 
106
    a) a single provider can support multiple protocols (like the ftp
 
107
    provider which supports both the ftp:// and the aftp:// protocols)
 
108
    b) a single protocol can have multiple providers (like the http://
 
109
    protocol which was supported by both the urllib and pycurl providers)
110
110
    """
111
111
 
112
112
    def register_transport_provider(self, key, obj):
1752
1752
                         register_netloc=True)
1753
1753
register_lazy_transport(b'https+urllib://', 'breezy.transport.http._urllib',
1754
1754
                        'HttpTransport_urllib')
1755
 
register_transport_proto(b'http+pycurl://',
1756
 
#                help="Read-only access of branches exported on the web."
1757
 
                         register_netloc=True)
1758
 
register_lazy_transport(b'http+pycurl://', 'breezy.transport.http._pycurl',
1759
 
                        'PyCurlTransport')
1760
 
register_transport_proto(b'https+pycurl://',
1761
 
#                help="Read-only access of branches exported on the web using SSL."
1762
 
                         register_netloc=True)
1763
 
register_lazy_transport(b'https+pycurl://', 'breezy.transport.http._pycurl',
1764
 
                        'PyCurlTransport')
1765
1755
# Default http transports (last declared wins (if it can be imported))
1766
1756
register_transport_proto(b'http://',
1767
1757
                 help="Read-only access of branches exported on the web.")
1768
1758
register_transport_proto(b'https://',
1769
1759
            help="Read-only access of branches exported on the web using SSL.")
1770
1760
# The default http implementation is urllib
1771
 
register_lazy_transport(b'http://', 'breezy.transport.http._pycurl',
1772
 
                        'PyCurlTransport')
1773
1761
register_lazy_transport(b'http://', 'breezy.transport.http._urllib',
1774
1762
                        'HttpTransport_urllib')
1775
 
register_lazy_transport(b'https://', 'breezy.transport.http._pycurl',
1776
 
                        'PyCurlTransport')
1777
1763
register_lazy_transport(b'https://', 'breezy.transport.http._urllib',
1778
1764
                        'HttpTransport_urllib')
1779
1765