diff options
Diffstat (limited to 'Lib/asyncio/futures.py')
-rw-r--r-- | Lib/asyncio/futures.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py index 047b132..9ff1430 100644 --- a/Lib/asyncio/futures.py +++ b/Lib/asyncio/futures.py @@ -143,8 +143,7 @@ class Future: # `yield Future()` (incorrect). _asyncio_future_blocking = False - _log_traceback = False # Used for Python 3.4 and later - _tb_logger = None # Used for Python 3.3 only + _log_traceback = False def __init__(self, *, loop=None): """Initialize the future. @@ -240,9 +239,6 @@ class Future: if self._state != _FINISHED: raise InvalidStateError('Result is not ready.') self._log_traceback = False - if self._tb_logger is not None: - self._tb_logger.clear() - self._tb_logger = None if self._exception is not None: raise self._exception return self._result @@ -260,9 +256,6 @@ class Future: if self._state != _FINISHED: raise InvalidStateError('Exception is not set.') self._log_traceback = False - if self._tb_logger is not None: - self._tb_logger.clear() - self._tb_logger = None return self._exception def add_done_callback(self, fn): |