parameters: (path_item)
return_statement: return importer
docstring: Retrieve a PEP 302 "importer" for the given path item
  
      If there is no importer, this returns a wrapper around the builtin import
      machinery.  The returned importer is only cached if it was created by a
      path hook.
docstring_summary: Retrieve a PEP 302 "importer" for the given path item
docstring_tokens: Retrieve a PEP 302 importer for the given path item
function: def get_importer(path_item):
      """Retrieve a PEP 302 "importer" for the given path item
  
      If there is no importer, this returns a wrapper around the builtin import
      machinery.  The returned importer is only cached if it was created by a
      path hook.
      """
      try:
          importer = sys.path_importer_cache[path_item]
      except KeyError:
          for hook in sys.path_hooks:
              try:
                  importer = hook(path_item)
              except ImportError:
                  pass
              else:
                  break
          else:
              importer = None
  
      sys.path_importer_cache.setdefault(path_item,importer)
      if importer is None:
          try:
              importer = ImpWrapper(path_item)
          except ImportError:
              pass
      return importer
function_tokens: def get_importer ( path_item ) : try : importer = sys . path_importer_cache [ path_item ] except KeyError : for hook in sys . path_hooks : try : importer = hook ( path_item ) except ImportError : pass else : break else : importer = None sys . path_importer_cache . setdefault ( path_item , importer ) if importer is None : try : importer = ImpWrapper ( path_item ) except ImportError : pass return importer