def __clean_doc_block(self):
<EOL>if not self._comment:<EOL><INDENT>return<EOL><DEDENT>for i in range(<NUM_LIT:1>, len(self._comment) - <NUM_LIT:1>):<EOL><INDENT>self._comment[i] = re.sub(r'<STR_LIT>', '<STR_LIT>', self._comment[i])<EOL><DEDENT>self._comment[<NUM_LIT:0>] = re.sub(r'<STR_LIT>', '<STR_LIT>', self._comment[<NUM_LIT:0>])<EOL>self._comment[-<NUM_LIT:1>] = re.sub(r'<STR_LIT>', '<STR_LIT>', self._comment[-<NUM_LIT:1>])<EOL>for i, line in enumerate(self._comment):<EOL><INDENT>self._comment[i] = line.strip()<EOL><DEDENT>self._comment = self.__remove_leading_empty_lines(self._comment)<EOL>self._comment = self.__remove_trailing_empty_lines(self._comment)<EOL>
Cleans the DocBlock from leading and trailing white space and comment tokens.