~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ssh.py

  • Committer: Alexander Belchenko
  • Date: 2007-12-05 20:12:27 UTC
  • mfrom: (3079 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3083.
  • Revision ID: bialix@ukr.net-20071205201227-9uiwuzrgzge15e5e
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    register_ssh_vendor('paramiko', vendor)
332
332
    register_ssh_vendor('none', vendor)
333
333
    register_default_ssh_vendor(vendor)
 
334
    _sftp_connection_errors = (EOFError, paramiko.SSHException)
334
335
    del vendor
 
336
else:
 
337
    _sftp_connection_errors = (EOFError,)
335
338
 
336
339
 
337
340
class SubprocessVendor(SSHVendor):
350
353
                                                  subsystem='sftp')
351
354
            sock = self._connect(argv)
352
355
            return SFTPClient(sock)
353
 
        except (EOFError, paramiko.SSHException), e:
 
356
        except _sftp_connection_errors, e:
354
357
            self._raise_connection_error(host, port=port, orig_error=e)
355
358
        except (OSError, IOError), e:
356
359
            # If the machine is fast enough, ssh can actually exit