diff options
author | Robey Pointer <robey@lag.net> | 2006-03-26 15:55:36 -0800 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-03-26 15:55:36 -0800 |
commit | 4120a158239d70ce346ab0116c2aa71949e32825 (patch) | |
tree | 678ee9e75e56c46bec83a96a1c40beec12818c00 | |
parent | b12d10fd720ad4268b28d90d18f8674ba78a9be8 (diff) |
[project @ robey@lag.net-20060326235536-31da9988fb7a06be]
slightly more docs to hostkeys
-rw-r--r-- | paramiko/hostkeys.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index fae25c22..63b1c61f 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -80,8 +80,14 @@ class HostKeys (UserDict.DictMixin): posix, it will usually be stored in C{os.path.expanduser("~/.ssh/known_hosts")}. + If this method is called multiple times, the host keys are merged, + not cleared. So multiple calls to C{load} will just call L{add}, + replacing any existing entries and adding new ones. + @param filename: name of the file to read host keys from @type filename: str + + @raise IOError: if there was an error reading the file """ f = file(filename, 'r') for line in f: |