import six


def split_ver(v):
    """Split v into a list of integers.

    Args:
        v (:obj:`str` or :obj:`list` of :obj:`int` or :obj:`int`):
            Version string to split using periods.

    Returns:
        :obj:`list` of :obj:`int` or :obj:`str`

    """
    v = v.split(".") if isinstance(v, six.string_types) else v
    return [
        int(x) if isinstance(x, six.string_types) and x.isdigit() else x
        for x in v
        if x not in ["", None]
    ]