Result is (bytes) str type on Python 2 and (unicode) str type on Python 3.

def get_traceback_stxt():
        """
        Result is (bytes) str type on Python 2 and (unicode) str type on Python 3.
        """
        #/
        exc_cls, exc_obj, tb_obj = sys.exc_info()
        
        #/
        txt_s = traceback.format_exception(exc_cls, exc_obj, tb_obj)
    
        #/
        res = ''.join(txt_s)
    
        return res