(cls, fullname, path=None)
Find module named in the registry.

        This method is deprecated.  Use find_spec() instead.
Find module named in the registry.
Find module named in the registry .
def find_module(cls, fullname, path=None):
        """Find module named in the registry.

        This method is deprecated.  Use find_spec() instead.

        """
        _warnings.warn("WindowsRegistryFinder.find_module() is deprecated and "
                       "slated for removal in Python 3.12; use find_spec() instead",
                       DeprecationWarning)
        spec = cls.find_spec(fullname, path)
        if spec is not None:
            return spec.loader
        else:
            return None
def find_module ( cls , fullname , path = None ) : _warnings . warn ( "WindowsRegistryFinder.find_module() is deprecated and " "slated for removal in Python 3.12; use find_spec() instead" , DeprecationWarning ) spec = cls . find_spec ( fullname , path ) if spec is not None : return spec . loader else : return None