def get_key_data():
 if os.path.exists(ssh_file(RSA_KEY_PUB)):
  with open(ssh_file(RSA_KEY_PUB)) as handle:
   key_data = handle.read()
  (key_type, key_fingerprint, key_id) = key_data.strip().split(None, 2)
  return {u'key': key_data, u'type': key_type, u'fingerprint': key_fingerprint, u'id': key_id}
 return None

def get_key_data ( ) : if os . path . exists ( ssh_file ( RSA_KEY_PUB ) ) : with open ( ssh_file ( RSA_KEY_PUB ) ) as handle : key_data = handle . read ( ) ( key_type , key_fingerprint , key_id ) = key_data . strip ( ) . split ( None , 2 ) return { u'key' : key_data , u'type' : key_type , u'fingerprint' : key_fingerprint , u'id' : key_id } return None
parses host key and returns it .