def event_processor(self, frame, event, arg):
out = self.debugger.intf[-<NUM_LIT:1>].output<EOL>lineno = frame.f_lineno<EOL>filename = self.core.canonic_filename(frame)<EOL>filename = self.core.filename(filename)<EOL>if not out:<EOL><INDENT>print("<STR_LIT>" % (event, filename, lineno))<EOL><DEDENT>else:<EOL><INDENT>out.write("<STR_LIT>" % (event, filename, lineno))<EOL>if arg is not None:<EOL><INDENT>out.writeline('<STR_LIT>' % repr(arg))<EOL><DEDENT>else:<EOL><INDENT>out.writeline('<STR_LIT>')<EOL>pass<EOL><DEDENT>pass<EOL><DEDENT>return self.event_processor<EOL>
A simple event processor that prints out events.