~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ssh.py

Cosmetic tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        raise NotImplementedError(self.connect_sftp)
154
154
 
155
155
    def connect_ssh(self, username, password, host, port, command):
156
 
        """Make an SSH connection, and return a pipe-like object."""
 
156
        """Make an SSH connection, and return a pipe-like object.
 
157
        
 
158
        (This is currently unused, it's just here to indicate future directions
 
159
        for this code.)
 
160
        """
157
161
        raise NotImplementedError(self.connect_ssh)
158
162
        
159
163
 
439
443
                'close_fds': True,
440
444
                }
441
445
 
 
446
 
442
447
class SSHSubprocess(object):
443
448
    """A socket-like object that talks to an ssh subprocess via pipes."""
444
 
    # TODO: this class probably belongs in bzrlib/transport/ssh.py
445
449
 
446
450
    def __init__(self, proc):
447
451
        self.proc = proc