ivars kinda suck

This commit is contained in:
Jeff Forcier 2014-02-26 17:50:26 -08:00
parent de99785ef0
commit 9c3f2c2122
1 changed files with 7 additions and 14 deletions

View File

@ -48,10 +48,9 @@ class BadAuthenticationType (AuthenticationException):
the server isn't allowing that type. (It may only allow public-key, for the server isn't allowing that type. (It may only allow public-key, for
example.) example.)
:ivar allowed_types: :ivar list allowed_types:
list of allowed authentication types provided by the server (possible list of allowed authentication types provided by the server (possible
values are: ``"none"``, ``"password"``, and ``"publickey"``). values are: ``"none"``, ``"password"``, and ``"publickey"``).
:type allowed_types: list
.. versionadded:: 1.1 .. versionadded:: 1.1
""" """
@ -80,8 +79,7 @@ class ChannelException (SSHException):
""" """
Exception raised when an attempt to open a new `.Channel` fails. Exception raised when an attempt to open a new `.Channel` fails.
:ivar code: the error code returned by the server :ivar int code: the error code returned by the server
:type code: int
.. versionadded:: 1.6 .. 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. The host key given by the SSH server did not match what we were expecting.
:ivar hostname: the hostname of the SSH server :ivar str hostname: the hostname of the SSH server
:type hostname: str :ivar PKey got_key: the host key presented by the server
:ivar key: the host key presented by the server :ivar PKey expected_key: the host key expected
:type key: `.PKey`
:ivar expected_key: the host key expected
:type expected_key: `.PKey`
.. versionadded:: 1.6 .. versionadded:: 1.6
""" """
@ -114,10 +109,8 @@ class ProxyCommandFailure (SSHException):
""" """
The "ProxyCommand" found in the .ssh/config file returned an error. The "ProxyCommand" found in the .ssh/config file returned an error.
:ivar command: The command line that is generating this exception. :ivar str command: The command line that is generating this exception.
:type command: str :ivar str error: The error captured from the proxy command output.
:ivar error: The error captured from the proxy command output.
:type error: str
""" """
def __init__(self, command, error): def __init__(self, command, error):
SSHException.__init__(self, SSHException.__init__(self,