def _pre_parse(self, http_resp): """ :param http_resp: The HTTP response document that contains the HTML document inside its body. """ SGMLParser._pre_parse(self, http_resp) assert self._base_url, 'The base URL must be set.'
def _pre_parse(self, http_resp): """ :param http_resp: The HTTP response document that contains the HTML document inside its body. """ SGMLParser._pre_parse(self, http_resp) assert self._base_url, 'The base URL must be set.'
def _pre_parse(self, HTTPResponse): """ :param HTTPResponse: The HTTP response document that contains the WML document inside its body. """ SGMLParser._pre_parse(self, HTTPResponse) assert self._base_url is not None, 'The base URL must be set.'