def split_input(val):
    '''
    Take an input value and split it into a list, returning the resulting list
    '''
    if isinstance(val, list):
        return val
    try:
        return [x.strip() for x in val.split(',')]
    except __HOLE__:
        return [x.strip() for x in str(val).split(',')]
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/split_input