def list_from_range(k=None):
    """Return a list based of ints where k can be a range string or an int."""
    if not k:
        return []
    if isinstance(k, int):
        return [k]
    bounds = [int(i) for i in k.split("-")]
    return list(range(bounds[0], bounds[1]))