def get(self, timeout=None):
result = None<EOL>try:<EOL><INDENT>result = self._result.get(True, timeout=timeout)<EOL><DEDENT>except Empty:<EOL><INDENT>raise Timeout()<EOL><DEDENT>if isinstance(result, Failure):<EOL><INDENT>six.reraise(*result.exc_info)<EOL><DEDENT>else:<EOL><INDENT>return result<EOL><DEDENT>
Return value on success, or raise exception on failure.