def CheckEnd(self, filename, clean_lines, linenum, error):
line = clean_lines.raw_lines[linenum]<EOL>if (linenum - self.starting_linenum < <NUM_LIT:10><EOL>and not Match(r'<STR_LIT>', line)):<EOL><INDENT>return<EOL><DEDENT>if self.name:<EOL><INDENT>if not Match((r'<STR_LIT>' +<EOL>re.escape(self.name) + r'<STR_LIT>'),<EOL>line):<EOL><INDENT>error(filename, linenum, '<STR_LIT>', <NUM_LIT:5>,<EOL>'<STR_LIT>' %<EOL>self.name)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if not Match(r'<STR_LIT>', line):<EOL><INDENT>if Match(r'<STR_LIT>', line):<EOL><INDENT>error(filename, linenum, '<STR_LIT>', <NUM_LIT:5>,<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>error(filename, linenum, '<STR_LIT>', <NUM_LIT:5>,<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>
Check end of namespace comments.