(self, ex_type, ex_val, tb)
Context guard.
Context guard.
Context guard .
def __exit__(self, ex_type, ex_val, tb):
        """Context guard."""
        self.close()
        # catch Exit and Break events
        if ex_type in (error.Exit, error.Break):
            return True
def __exit__ ( self , ex_type , ex_val , tb ) : self . close ( ) # catch Exit and Break events if ex_type in ( error . Exit , error . Break ) : return True