def set_exception(self, exception):
        """Sets the exception of a ``Future.``"""
        self.set_exc_info(
            (exception.__class__,
             exception,
             getattr(exception, '__traceback__', None)))
def set_exception ( self , exception ) : self . set_exc_info ( ( exception . __class__ , exception , getattr ( exception , '__traceback__' , None ) ) )
Sets the exception of a ``Future.``