def showsyntaxerror(self, filename=None): from pyramid_debugtoolbar.tbtools import get_current_traceback tb = get_current_traceback(skip=4) sys.stdout._write(tb.render_summary())
def showtraceback(self): from pyramid_debugtoolbar.tbtools import get_current_traceback tb = get_current_traceback(skip=1) sys.stdout._write(tb.render_summary())