summaryrefslogtreecommitdiff
path: root/paramiko/config.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2018-06-14 16:18:57 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-06-14 16:18:57 -0700
commit39a3acd26711dc279232927678d564b6e7af8910 (patch)
tree7d85c51a39a475009db40ea442cb8bf260992041 /paramiko/config.py
parent455ff2a7a03c88aa00fdd319203fa0c10bc7e031 (diff)
downloadparamiko-39a3acd26711dc279232927678d564b6e7af8910.tar.gz
versionadded/changed for SSHConfigDict et al
Diffstat (limited to 'paramiko/config.py')
-rw-r--r--paramiko/config.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/paramiko/config.py b/paramiko/config.py
index a15a1f89..aeb59593 100644
--- a/paramiko/config.py
+++ b/paramiko/config.py
@@ -119,6 +119,9 @@ class SSHConfig(object):
assert conf.as_bool('passwordauthentication') is True
:param str hostname: the hostname to lookup
+
+ .. versionchanged:: 2.5
+ Returns `SSHConfigDict` objects instead of dict literals.
"""
matches = [
config
@@ -330,6 +333,8 @@ class SSHConfigDict(dict):
assert conf.as_bool('compression') is True
assert conf['serveraliveinterval'] == '60'
assert conf.as_int('serveraliveinterval') == 60
+
+ .. versionadded:: 2.5
"""
def __init__(self, *args, **kwargs):
@@ -347,6 +352,8 @@ class SSHConfigDict(dict):
.. note::
If (for whatever reason) the stored value is already boolean in
nature, it's simply returned.
+
+ .. versionadded:: 2.5
"""
val = self[key]
if isinstance(val, bool):
@@ -359,5 +366,7 @@ class SSHConfigDict(dict):
This method will raise ``ValueError`` or similar if the value is not
int-appropriate, same as the builtin `int` type.
+
+ .. versionadded:: 2.5
"""
return int(self[key])