diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-06-06 12:23:08 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-06-06 12:23:08 -0700 |
commit | 91e53ab303e4f881ca1f59473b5e7ea8f600b0ae (patch) | |
tree | 45c62e3f091785c4db5abef2e051374bce4a7d1a | |
parent | 36b5617baf359a85d5bce7d240da5d2023a4226a (diff) |
DDD re #857
-rw-r--r-- | paramiko/client.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/paramiko/client.py b/paramiko/client.py index 689f84b1..8e9038dd 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -170,16 +170,10 @@ class SSHClient (ClosingContextManager): Specifically: - * A **policy** is an instance of a "policy class", namely some subclass - of `.MissingHostKeyPolicy` such as `.RejectPolicy` (the default), - `.AutoAddPolicy`, `.WarningPolicy`, or a user-created subclass. - - .. note:: - This method takes class **instances**, not **classes** themselves. - Thus it must be called as e.g. - ``.set_missing_host_key_policy(WarningPolicy())`` and *not* - ``.set_missing_host_key_policy(WarningPolicy)``. - + * A **policy** is a "policy class" (or instance thereof), namely some + subclass of `.MissingHostKeyPolicy` such as `.RejectPolicy` (the + default), `.AutoAddPolicy`, `.WarningPolicy`, or a user-created + subclass. * A host key is **known** when it appears in the client object's cached host keys structures (those manipulated by `load_system_host_keys` and/or `load_host_keys`). |