def is_same_host(self, url):
        """
        Check if the given ``url`` is a member of the same host as this
        conncetion pool.
        """
        # TODO: Add optional support for socket.gethostbyname checking.
        return (url.startswith('/') or
                get_host(url) == (self.scheme, self.host, self.port))
def is_same_host ( self , url ) : return ( url . startswith ( '/' ) or get_host ( url ) == ( self . scheme , self . host , self . port ) )
Check if the given ``url`` is a member of the same host as this
        conncetion pool.