def __exit__(self, e_ty, e_val, e_tb):
        '''If any exception leaves the :code:`with`-block, marks the tracer as
        failed with that exception (see :meth:`mark_failed_exc`). In any case,
        ends the tracer (see :meth:`end`).'''
        try:
            del e_tb
            if e_ty is not None or e_val is not None:
                self.mark_failed_exc(e_val, e_ty)
        finally:
            self.end()
def __exit__ ( self , e_ty , e_val , e_tb ) : try : del e_tb if e_ty is not None or e_val is not None : self . mark_failed_exc ( e_val , e_ty ) finally : self . end ( )
If any exception leaves the :code:`with`-block, marks the tracer as
        failed with that exception (see :meth:`mark_failed_exc`). In any case,
        ends the tracer (see :meth:`end`).