(fn, glob)
return pattern.match(fn)
Return whether the supplied file name fn matches pattern filename
Return whether the supplied file name fn matches pattern filename
Return whether the supplied file name fn matches pattern filename
def _fn_matches(fn, glob):
    """
    Return whether the supplied file name fn matches pattern filename
    """
    if glob not in _pattern_cache:
        pattern = re.compile(fnmatch.translate(glob))
        _pattern_cache[glob] = pattern
    else:
        pattern = _pattern_cache[glob]

    return pattern.match(fn)
def _fn_matches ( fn , glob ) : if glob not in _pattern_cache : pattern = re . compile ( fnmatch . translate ( glob ) ) _pattern_cache [ glob ] = pattern else : pattern = _pattern_cache [ glob ] return pattern . match ( fn )