def _api_set_config_default(name, output, kwargs):
 keywords = kwargs.get('keyword', [])
 if (not isinstance(keywords, list)):
  keywords = [keywords]
 for keyword in keywords:
  item = config.get_config('misc', keyword)
  if item:
   item.set(item.default())
 config.save_config()
 return report(output)

def _api_set_config_default ( name , output , kwargs ) : keywords = kwargs . get ( 'keyword' , [ ] ) if ( not isinstance ( keywords , list ) ) : keywords = [ keywords ] for keyword in keywords : item = config . get_config ( 'misc' , keyword ) if item : item . set ( item . default ( ) ) config . save_config ( ) return report ( output )
api: reset requested config variables back to defaults .