From 9c3f2c2122cdf6bec97cf8bd1db664b20f861813 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Wed, 26 Feb 2014 17:50:26 -0800 Subject: [PATCH] ivars kinda suck --- paramiko/ssh_exception.py | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 56dec86..63ca640 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -48,10 +48,9 @@ class BadAuthenticationType (AuthenticationException): the server isn't allowing that type. (It may only allow public-key, for example.) - :ivar allowed_types: + :ivar list allowed_types: list of allowed authentication types provided by the server (possible values are: ``"none"``, ``"password"``, and ``"publickey"``). - :type allowed_types: list .. versionadded:: 1.1 """ @@ -80,8 +79,7 @@ class ChannelException (SSHException): """ Exception raised when an attempt to open a new `.Channel` fails. - :ivar code: the error code returned by the server - :type code: int + :ivar int code: the error code returned by the server .. versionadded:: 1.6 """ @@ -94,12 +92,9 @@ class BadHostKeyException (SSHException): """ The host key given by the SSH server did not match what we were expecting. - :ivar hostname: the hostname of the SSH server - :type hostname: str - :ivar key: the host key presented by the server - :type key: `.PKey` - :ivar expected_key: the host key expected - :type expected_key: `.PKey` + :ivar str hostname: the hostname of the SSH server + :ivar PKey got_key: the host key presented by the server + :ivar PKey expected_key: the host key expected .. versionadded:: 1.6 """ @@ -114,10 +109,8 @@ class ProxyCommandFailure (SSHException): """ The "ProxyCommand" found in the .ssh/config file returned an error. - :ivar command: The command line that is generating this exception. - :type command: str - :ivar error: The error captured from the proxy command output. - :type error: str + :ivar str command: The command line that is generating this exception. + :ivar str error: The error captured from the proxy command output. """ def __init__(self, command, error): SSHException.__init__(self,