def match_prom_or_abs(name, prom_name, includes=None, excludes=None):
    '\n    Check to see if the variable names pass through the includes and excludes filter.\n\n    Parameters\n    ----------\n    name : str\n        Unpromoted variable name to be checked for match.\n    prom_name : str\n        Promoted variable name to be checked for match.\n    includes : iter of str or None\n        Glob patterns for name to include in the filtering.  None, the default, means\n        to include all.\n    excludes : iter of str or None\n        Glob patterns for name to exclude in the filtering.\n\n    Returns\n    -------\n    bool\n        Return True if the name passes through the filtering of includes and excludes.\n    '
    diff = (name != prom_name)
    if (excludes is not None):
        for pattern in excludes:
            if (fnmatchcase(name, pattern) or (diff and fnmatchcase(prom_name, pattern))):
                return False
    if (includes is None):
        return True
    else:
        for pattern in includes:
            if (fnmatchcase(name, pattern) or (diff and fnmatchcase(prom_name, pattern))):
                return True
    return False
Check to see if the variable names pass through the includes and excludes filter.

Parameters
----------
name : str
    Unpromoted variable name to be checked for match.
prom_name : str
    Promoted variable name to be checked for match.
includes : iter of str or None
    Glob patterns for name to include in the filtering.  None, the default, means
    to include all.
excludes : iter of str or None
    Glob patterns for name to exclude in the filtering.

Returns
-------
bool
    Return True if the name passes through the filtering of includes and excludes.
def match_prom_or_abs(name, prom_name, includes=None, excludes=None):
    '\n    Check to see if the variable names pass through the includes and excludes filter.\n\n    Parameters\n    ----------\n    name : str\n        Unpromoted variable name to be checked for match.\n    prom_name : str\n        Promoted variable name to be checked for match.\n    includes : iter of str or None\n        Glob patterns for name to include in the filtering.  None, the default, means\n        to include all.\n    excludes : iter of str or None\n        Glob patterns for name to exclude in the filtering.\n\n    Returns\n    -------\n    bool\n        Return True if the name passes through the filtering of includes and excludes.\n    '
    diff = (name != prom_name)
    if (excludes is not None):
        for pattern in excludes:
            if (fnmatchcase(name, pattern) or (diff and fnmatchcase(prom_name, pattern))):
                return False
    if (includes is None):
        return True
    else:
        for pattern in includes:
            if (fnmatchcase(name, pattern) or (diff and fnmatchcase(prom_name, pattern))):
                return True
    return False