slightly more docs to hostkeys
This commit is contained in:
Robey Pointer 2006-03-26 15:55:36 -08:00
parent b12d10fd72
commit 4120a15823
1 changed files with 6 additions and 0 deletions

View File

@ -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: