def _getlist(value, sep, keep_empty):
    if not value:
        return []
    if isinstance(value, basestring):
        if isinstance(sep, (list, tuple)):
            splitted = re.split('|'.join(map(re.escape, sep)), value)
        else:
            splitted = value.split(sep)
        items = [item.strip() for item in splitted]
    else:
        items = list(value)
    if not keep_empty:
        items = [item for item in items if (None, '') not in item]
    return items
dataset/ETHPy150Open edgewall/trac/trac/config.py/_getlist/swapped operands of `not in`