def add_whitelist_module(name, module=None):
 for (i, (_name, _module)) in enumerate(internal._WHITELIST_ADDED):
  if (_name == name):
   if (_module == module):
    return
   internal._WHITELIST_ADDED[i] = (_name, module)
   return
 internal._WHITELIST_ADDED.append((name, module))

def add_whitelist_module ( name , module = None ) : for ( i , ( _name , _module ) ) in enumerate ( internal . _WHITELIST_ADDED ) : if ( _name == name ) : if ( _module == module ) : return internal . _WHITELIST_ADDED [ i ] = ( _name , module ) return internal . _WHITELIST_ADDED . append ( ( name , module ) )
api function to ensure that a certain module is made available to any plugins .