def list_or_caseless_string(value):
    """
    Converts the value into a list of ``caseless_string``'s. If the value is not iterable
    a one-element list with stringified value will be returned.

    """
    if isinstance(value, basestring):
        return [caseless_string(value)]
    else:
        try:
            return map(caseless_string, value)
        except __HOLE__:
            return [caseless_string(value)]
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/types.py/list_or_caseless_string