parameters: (fn, glob)
return_statement: return pattern.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 = re.compile(fnmatch.translate(glob))
          _pattern_cache[glob] = pattern
      else:
          pattern = _pattern_cache[glob]
  
      return pattern.match(fn)
function_tokens: 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 )