def __parse_aliases():
 afn = __get_aliases_filename()
 ret = []
 if (not os.path.isfile(afn)):
  return ret
 with salt.utils.fopen(afn, 'r') as ifile:
  for line in ifile:
   match = __ALIAS_RE.match(line)
   if match:
    ret.append(match.groups())
   else:
    ret.append((None, None, line.strip()))
 return ret

def __parse_aliases ( ) : afn = __get_aliases_filename ( ) ret = [ ] if ( not os . path . isfile ( afn ) ) : return ret with salt . utils . fopen ( afn , 'r' ) as ifile : for line in ifile : match = __ALIAS_RE . match ( line ) if match : ret . append ( match . groups ( ) ) else : ret . append ( ( None , None , line . strip ( ) ) ) return ret
parse the aliases file .