parameters: (self, tb, *args, **kwargs)
return_statement: return line_str
docstring: Monkey patched to display source code lines when an Exception traceback is
    displayed in Zope
docstring_summary: Monkey patched to display source code lines when an Exception traceback is
    displayed in Zope
docstring_tokens: Monkey patched to display source code lines when an Exception traceback is displayed in Zope
function: def formatLine(self, tb, *args, **kwargs):
    """
    Monkey patched to display source code lines when an Exception traceback is
    displayed in Zope
    """
    f = tb.tb_frame
    filename = f.f_code.co_filename
    lineno = tb.tb_lineno
    f_globals = f.f_globals
    line_str = TextExceptionFormatter_formatLine(self, tb, *args, **kwargs)
    try:
      import linecache
      source_code_line = linecache.getline(filename, lineno, f_globals)
      line_str += self.line_sep + '    ' + self.escape(source_code_line.strip())
    except Exception:
      pass
  
    return line_str
function_tokens: def formatLine ( self , tb , * args , * * kwargs ) : f = tb . tb_frame filename = f . f_code . co_filename lineno = tb . tb_lineno f_globals = f . f_globals line_str = TextExceptionFormatter_formatLine ( self , tb , * args , * * kwargs ) try : import linecache source_code_line = linecache . getline ( filename , lineno , f_globals ) line_str += self . line_sep + '    ' + self . escape ( source_code_line . strip ( ) ) except Exception : pass return line_str