def _exception_traceback(exc_info):
 excout = StringIO()
 (exc_type, exc_val, exc_tb) = exc_info
 traceback.print_exception(exc_type, exc_val, exc_tb, file=excout)
 return excout.getvalue()

def _exception_traceback ( exc_info ) : excout = StringIO ( ) ( exc_type , exc_val , exc_tb ) = exc_info traceback . print_exception ( exc_type , exc_val , exc_tb , file = excout ) return excout . getvalue ( )
return a string containing a traceback message for the given exc_info tuple (as returned by sys .