original_docstring: Search a Loader data structure for a filename.
docstring: Search a Loader data structure for a filename.
docstring_tokens: Search a Loader data structure for a filename .
code: def _search(mapping, filename):
      """Search a Loader data structure for a filename."""
      result = mapping.get(filename)
      if result is not None:
          return result
      name, ext = os.path.splitext(filename)
      result = mapping.get(ext)
      if result is not None:
          for pattern, result2 in result:
              if fnmatch(filename, pattern):
                  return result2
      return None
code_tokens: def _search ( mapping , filename ) : result = mapping . get ( filename ) if result is not None : return result name , ext = os . path . splitext ( filename ) result = mapping . get ( ext ) if result is not None : for pattern , result2 in result : if fnmatch ( filename , pattern ) : return result2 return None
short_docstring: Search a Loader data structure for a filename.
short_docstring_tokens: Search a Loader data structure for a filename .
comment: """Search a Loader data structure for a filename."""