def save_list_setting(settings, filename, name, new_value, old_value=None):
 new_value = list(set(new_value))
 new_value = sorted(new_value, key=(lambda s: s.lower()))
 if (old_value is not None):
  if (old_value == new_value):
   return
 settings.set(name, new_value)
 sublime.save_settings(filename)

def save_list_setting ( settings , filename , name , new_value , old_value = None ) : new_value = list ( set ( new_value ) ) new_value = sorted ( new_value , key = ( lambda s : s . lower ( ) ) ) if ( old_value is not None ) : if ( old_value == new_value ) : return settings . set ( name , new_value ) sublime . save_settings ( filename )
updates a list-valued setting .