def load(filename):
    '''Load a known_hosts file, if not already loaded'''
    filename = os.path.expanduser(filename)
    with _lock:
        if filename not in _loaded_files:
            try:
                _loaded_files[filename] = KnownHosts(filename)
            except __HOLE__ as e:
                logging.getLogger('radssh.keys').info('Unable to load known_hosts from %s: %s' % (filename, str(e)))
                _loaded_files[filename] = KnownHosts()
                _loaded_files[filename]._filename = filename
    return _loaded_files[filename]
dataset/ETHPy150Open radssh/radssh/radssh/known_hosts.py/load