def _register_provider(self): provider_type = self.provider_type if provider_type and provider_type not in self._providers: self._providers[provider_type] = Provider.provider_factory( provider_type, self._settings ) self._provider = self._providers.get(provider_type)
def _register_provider(self): if self.provider_type not in self._providers: self._providers[self.provider_type] = Provider.provider_factory( self.provider_type, self._settings) self._provider = self._providers[self.provider_type]