def get_host_keys():
 try:
  result = []
  with open(ssh_file(KNOWN_HOSTS), u'r') as handle:
   for line in handle:
    line = line.strip()
    if is_key_line(line):
     result.append(parse_hosts_line(line))
 except IOError:
  return []
 return result

def get_host_keys ( ) : try : result = [ ] with open ( ssh_file ( KNOWN_HOSTS ) , u'r' ) as handle : for line in handle : line = line . strip ( ) if is_key_line ( line ) : result . append ( parse_hosts_line ( line ) ) except IOError : return [ ] return result
returns list of host keys .