@staticmethod<EOL><INDENT>def normalize_exception(exc):<DEDENT>
subs = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>exc.filename = None<EOL>exc.lineno = None<EOL>exc.msg = subs.get(exc.msg, exc.msg)<EOL>return exc<EOL>
Given a SyntaxError from a marker evaluation, normalize the error
message:
 - Remove indications of filename and line number.
 - Replace platform-specific error messages with standard error
   messages.