Lines Matching refs:finder

626     This method is deprecated in favor of finder.find_spec().
853 """Meta path finder for modules declared in the Windows registry."""
1099 finder."""
1124 """Return the path to the source file as found by the finder."""
1261 """Return the path to the source file as found by the finder."""
1391 """Meta path finder for sys.path and package __path__ attributes."""
1397 for name, finder in list(sys.path_importer_cache.items()):
1398 # Drop entry if finder name is a relative path. The current
1400 if finder is None or not _path_isabs(name):
1402 elif hasattr(finder, 'invalidate_caches'):
1403 finder.invalidate_caches()
1410 """Search sys.path_hooks for a finder for 'path'."""
1423 """Get the finder for the path entry from sys.path_importer_cache.
1425 If the path entry is not in the cache, find the appropriate finder
1426 and cache it. If no finder is available, store None.
1437 finder = sys.path_importer_cache[path]
1439 finder = cls._path_hooks(path)
1440 sys.path_importer_cache[path] = finder
1441 return finder
1444 def _legacy_get_spec(cls, fullname, finder):
1447 if hasattr(finder, 'find_loader'):
1448 msg = (f"{_bootstrap._object_name(finder)}.find_spec() not found; "
1451 loader, portions = finder.find_loader(fullname)
1453 msg = (f"{_bootstrap._object_name(finder)}.find_spec() not found; "
1456 loader = finder.find_module(fullname)
1473 finder = cls._path_importer_cache(entry)
1474 if finder is not None:
1475 if hasattr(finder, 'find_spec'):
1476 spec = finder.find_spec(fullname, target)
1478 spec = cls._legacy_get_spec(fullname, finder)
1552 """File-based finder.
1555 refreshed when the directory the finder is handling has been modified.