(finder, name)
Return the finder-specific module spec.
Return the finder-specific module spec.
Return the finder - specific module spec .
def _get_spec(finder, name):
    """Return the finder-specific module spec."""
    # Works with legacy finders.
    try:
        find_spec = finder.find_spec
    except AttributeError:
        loader = finder.find_module(name)
        if loader is None:
            return None
        return importlib.util.spec_from_loader(name, loader)
    else:
        return find_spec(name)
def _get_spec ( finder , name ) : # Works with legacy finders. try : find_spec = finder . find_spec except AttributeError : loader = finder . find_module ( name ) if loader is None : return None return importlib . util . spec_from_loader ( name , loader ) else : return find_spec ( name )