def string_to_list(string):
    """
    Usage:
        {{ url|thumbnail:"width,height" }}
    """

    args = []
    if string:
        string = str(string)
        if ',' not in string:
            # ensure at least one ','
            string += ','
        for arg in string.split(','):
            arg = arg.strip()
            if arg == '':
                continue
            args.append(arg)
    return args
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/templatetags/fb_tags.py/string_to_list/original