def cast_to_list(emoticons_list):
    emoticons_tuple = []
    for emoticons, image in emoticons_list:
        if isinstance(emoticons, basestring):
            emoticons = [emoticons]
        else:
            emoticons = list(emoticons)
        emoticons_tuple.append((emoticons, image))
    return emoticons_tuple
Fix list of emoticons with a single name
dataset/ETHPy150Open Fantomas42/django-emoticons/emoticons/settings.py/cast_to_list