コード例 #1
0
    def installResolver(self, resolver):
        """
        See L{IReactorPluggableResolver}.

        @param resolver: see L{IReactorPluggableResolver}.

        @return: see L{IReactorPluggableResolver}.
        """
        assert IResolverSimple.providedBy(resolver)
        oldResolver = self.resolver
        self.resolver = resolver
        self._nameResolver = _SimpleResolverComplexifier(resolver)
        return oldResolver
コード例 #2
0
ファイル: base.py プロジェクト: chrisbarber/twisted
    def installResolver(self, resolver):
        """
        See L{IReactorPluggableResolver}.

        @param resolver: see L{IReactorPluggableResolver}.

        @return: see L{IReactorPluggableResolver}.
        """
        assert IResolverSimple.providedBy(resolver)
        oldResolver = self.resolver
        self.resolver = resolver
        self._nameResolver = _SimpleResolverComplexifier(resolver)
        return oldResolver
コード例 #3
0
ファイル: base.py プロジェクト: emragins/tribal
 def installResolver(self, resolver):
     assert IResolverSimple.providedBy(resolver)
     oldResolver = self.resolver
     self.resolver = resolver
     return oldResolver