def _get_persistent_modules():
 mods = set()
 with salt.utils.fopen(_LOADER_CONF, 'r') as loader_conf:
  for line in loader_conf:
   line = line.strip()
   mod_name = _get_module_name(line)
   if mod_name:
    mods.add(mod_name)
 return mods

def _get_persistent_modules ( ) : mods = set ( ) with salt . utils . fopen ( _LOADER_CONF , 'r' ) as loader_conf : for line in loader_conf : line = line . strip ( ) mod_name = _get_module_name ( line ) if mod_name : mods . add ( mod_name ) return mods
returns a list of modules in loader .