(cls, value, separator=',')
return [chunk.strip() for chunk in value if chunk.strip()]
Represents value as a list.

        Value is split either by separator (defaults to comma) or by lines.

        :param value:
        :param separator: List items separator character.
        :rtype: list
Represents value as a list.
Represents value as a list .
def _parse_list(cls, value, separator=','):
        """Represents value as a list.

        Value is split either by separator (defaults to comma) or by lines.

        :param value:
        :param separator: List items separator character.
        :rtype: list
        """
        if isinstance(value, list):  # _get_parser_compound case
            return value

        if '\n' in value:
            value = value.splitlines()
        else:
            value = value.split(separator)

        return [chunk.strip() for chunk in value if chunk.strip()]
def _parse_list ( cls , value , separator = ',' ) : if isinstance ( value , list ) : # _get_parser_compound case return value if '\n' in value : value = value . splitlines ( ) else : value = value . split ( separator ) return [ chunk . strip ( ) for chunk in value if chunk . strip ( ) ]