def CheckForCopyright(filename, lines, error):
<EOL>for line in range(<NUM_LIT:1>, min(len(lines), <NUM_LIT:11>)):<EOL><INDENT>if re.search(r'<STR_LIT>', lines[line], re.I): break<EOL><DEDENT>else:                       <EOL><INDENT>error(filename, <NUM_LIT:0>, '<STR_LIT>', <NUM_LIT:5>,<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>
Logs an error if no Copyright message appears at the top of the file.