def get_comments(self, post_id):
path = urijoin(self.base_url, self.COMMENTS if self._use_new_urls else self.COMMENTS_OLD)<EOL>params = {<EOL>'<STR_LIT>': post_id,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': <NUM_LIT:0><EOL>}<EOL>headers = {'<STR_LIT>': '<STR_LIT>'}<EOL>try:<EOL><INDENT>response = self.fetch(path, payload=params, headers=headers)<EOL>raw = response.text<EOL><DEDENT>except requests.exceptions.HTTPError as ex:<EOL><INDENT>if ex.response.status_code == <NUM_LIT>:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>self._use_new_urls = False<EOL>path = urijoin(self.base_url, self.COMMENTS_OLD)<EOL>response = self.fetch(path, payload=params, headers=headers)<EOL>raw = response.text<EOL><DEDENT>elif ex.response.status_code == <NUM_LIT>:<EOL><INDENT>logger.warning("<STR_LIT>", ex)<EOL>raw = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>raise ex<EOL><DEDENT><DEDENT>return raw<EOL>
Retrieve a list of comments by a given id.

        :param object_id: object identifiere