def render_traceback(self, excid=None):
lines = []<EOL>if excid is None:<EOL><INDENT>for (en,ev,etb,ei) in self.elist:<EOL><INDENT>lines.append(self._get_engine_str(ei))<EOL>lines.extend((etb or '<STR_LIT>').splitlines())<EOL>lines.append('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>en,ev,etb,ei = self.elist[excid]<EOL><DEDENT>except:<EOL><INDENT>raise IndexError("<STR_LIT>"%excid)<EOL><DEDENT>else:<EOL><INDENT>lines.append(self._get_engine_str(ei))<EOL>lines.extend((etb or '<STR_LIT>').splitlines())<EOL><DEDENT><DEDENT>return lines<EOL>
render one or all of my tracebacks to a list of lines