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

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
retrieve a pep 302 "importer" for the given path item if there is no importer .