~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

Merge with __contains__

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
        self.file_handle.close()
255
255
 
256
256
    def write(self, bytes):
257
 
        self.file_handle.write(bytes)
 
257
        osutils.pump_string_file(bytes, self.file_handle)
258
258
 
259
259
 
260
260
class AppendBasedFileStream(FileStream):
1722
1722
register_transport_proto('aftp://', help="Access using active FTP.")
1723
1723
register_lazy_transport('aftp://', 'bzrlib.transport.ftp', 'FtpTransport')
1724
1724
 
 
1725
# Default to trying GSSAPI authentication (if the kerberos module is available)
 
1726
register_transport_proto('ftp+gssapi://', register_netloc=True)
 
1727
register_lazy_transport('ftp+gssapi://', 'bzrlib.transport.ftp._gssapi', 
 
1728
                        'GSSAPIFtpTransport')
 
1729
register_transport_proto('aftp+gssapi://', register_netloc=True)
 
1730
register_lazy_transport('aftp+gssapi://', 'bzrlib.transport.ftp._gssapi', 
 
1731
                        'GSSAPIFtpTransport')
 
1732
register_transport_proto('ftp+nogssapi://', register_netloc=True)
 
1733
register_transport_proto('aftp+nogssapi://', register_netloc=True)
 
1734
 
 
1735
register_lazy_transport('ftp://', 'bzrlib.transport.ftp._gssapi', 
 
1736
                        'GSSAPIFtpTransport')
 
1737
register_lazy_transport('aftp://', 'bzrlib.transport.ftp._gssapi', 
 
1738
                        'GSSAPIFtpTransport')
 
1739
register_lazy_transport('ftp+nogssapi://', 'bzrlib.transport.ftp', 
 
1740
                        'FtpTransport')
 
1741
register_lazy_transport('aftp+nogssapi://', 'bzrlib.transport.ftp', 
 
1742
                        'FtpTransport')
 
1743
 
1725
1744
register_transport_proto('memory://')
1726
1745
register_lazy_transport('memory://', 'bzrlib.transport.memory',
1727
1746
                        'MemoryTransport')
1739
1758
register_lazy_transport('fakenfs+', 'bzrlib.transport.fakenfs',
1740
1759
                        'FakeNFSTransportDecorator')
1741
1760
 
 
1761
register_transport_proto('log+')
 
1762
register_lazy_transport('log+', 'bzrlib.transport.log', 'TransportLogDecorator')
 
1763
 
1742
1764
register_transport_proto('trace+')
1743
1765
register_lazy_transport('trace+', 'bzrlib.transport.trace',
1744
1766
                        'TransportTraceDecorator')