(self, ei)
return s
Format and return the specified exception information as a string.

        This default implementation just uses
        traceback.print_exception()
Format and return the specified exception information as a string.
Format and return the specified exception information as a string .
def formatException(self, ei):
        """
        Format and return the specified exception information as a string.

        This default implementation just uses
        traceback.print_exception()
        """
        sio = io.StringIO()
        tb = ei[2]
        # See issues #9427, #1553375. Commented out for now.
        #if getattr(self, 'fullstack', False):
        #    traceback.print_stack(tb.tb_frame.f_back, file=sio)
        traceback.print_exception(ei[0], ei[1], tb, None, sio)
        s = sio.getvalue()
        sio.close()
        if s[-1:] == "\n":
            s = s[:-1]
        return s
def formatException ( self , ei ) : sio = io . StringIO ( ) tb = ei [ 2 ] # See issues #9427, #1553375. Commented out for now. #if getattr(self, 'fullstack', False): #    traceback.print_stack(tb.tb_frame.f_back, file=sio) traceback . print_exception ( ei [ 0 ] , ei [ 1 ] , tb , None , sio ) s = sio . getvalue ( ) sio . close ( ) if s [ - 1 : ] == "\n" : s = s [ : - 1 ] return s