def __init__(self, dom, path):
        """
        You would usually use the
        :func:`TemplateRepository.from_url` method instead of
        directly using this

        Args:
            dom (dict): Specification of the template repository (not confuse
                with xml dom)
        """
        self._dom = dom
        self._providers = {
            name: self._get_provider(spec)
            for name, spec in self._dom.get('sources', {}).items()
        }
        self._path = path
def __init__ ( self , dom , path ) : self . _dom = dom self . _providers = { name : self . _get_provider ( spec ) for name , spec in self . _dom . get ( 'sources' , { } ) . items ( ) } self . _path = path
You would usually use the
        :func:`TemplateRepository.from_url` method instead of
        directly using this

        Args:
            dom (dict): Specification of the template repository (not confuse
                with xml dom)