parameters: (self)
docstring: Raises a pending exception that was recorded while getting a
          Task ready for execution.
docstring_summary: Raises a pending exception that was recorded while getting a
          Task ready for execution.
docstring_tokens: Raises a pending exception that was recorded while getting a Task ready for execution .
function: def _exception_raise(self):
          """
          Raises a pending exception that was recorded while getting a
          Task ready for execution.
          """
          exc = self.exc_info()[:]
          try:
              exc_type, exc_value, exc_traceback = exc
          except ValueError:
              exc_type, exc_value = exc  # pylint: disable=unbalanced-tuple-unpacking
              exc_traceback = None
  
          # raise exc_type(exc_value).with_traceback(exc_traceback)
          if isinstance(exc_value, Exception): #hasattr(exc_value, 'with_traceback'):
              # If exc_value is an exception, then just reraise
              raise exc_value.with_traceback(exc_traceback)
          else:
              # else we'll create an exception using the value and raise that
              raise exc_type(exc_value).with_traceback(exc_traceback)
function_tokens: def _exception_raise ( self ) : exc = self . exc_info ( ) [ : ] try : exc_type , exc_value , exc_traceback = exc except ValueError : exc_type , exc_value = exc # pylint: disable=unbalanced-tuple-unpacking exc_traceback = None # raise exc_type(exc_value).with_traceback(exc_traceback) if isinstance ( exc_value , Exception ) : #hasattr(exc_value, 'with_traceback'): # If exc_value is an exception, then just reraise raise exc_value . with_traceback ( exc_traceback ) else : # else we'll create an exception using the value and raise that raise exc_type ( exc_value ) . with_traceback ( exc_traceback )