#NEWLINE# def __exit__( self , type_ , value , traceback ) : #NEWLINE# #INDENT# 'If triggered, raise TimeoutReached.' #NEWLINE# if self . _triggered : #NEWLINE# #INDENT# raise TimeoutReached ( self . _seconds ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _timer is not None ) : #NEWLINE# #INDENT# self . _timer . cancel ( )