

def save_palettes(palettes, favs=False):
    'Save palettes.'
    s = sublime.load_settings('color_helper.palettes')
    if favs:
        s.set('favorites', palettes)
    else:
        s.set('palettes', palettes)
    sublime.save_settings('color_helper.palettes')

dataset/ETHPy150Open facelessuser/ColorHelper/color_helper_util.py save_palettes/original