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