class_docstr: Handles metadata supplied in configuration files.
class_docstr_tok: ["Handles","metadata","supplied","in","configuration","files","."]
docstr: 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
docstr_tok: ["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"]
code: 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()]
  
imports: import contextlib
  import functools
  import os
  from collections import defaultdict
  from functools import partial
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, Any, Dict, Generic, Iterable, List, Optional, Set, Tuple, TypeVar, Union
  from ..errors import FileError, OptionError
  from ..extern.packaging.markers import default_environment
  from ..extern.packaging.requirements import InvalidRequirement, Requirement
  from ..extern.packaging.specifiers import SpecifierSet
  from ..extern.packaging.version import InvalidVersion, Version
  from ..warnings import SetuptoolsDeprecationWarning
  from .None import expand
label_desc: Use image node_id 5 for calling the ConfigHandler obj's underlying member method code with example usage: obj._parse_list(cls, value, separator) and returns: unknown, value