diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2017-12-15 07:04:38 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-15 07:04:38 +0200 | 
| commit | f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847 (patch) | |
| tree | 7c622fa99ba081586a655b1744dae0a46b3a0f95 /Lib/asyncio/futures.py | |
| parent | 19a44f63c738388ef3c8515348b4ffc061dfd627 (diff) | |
| download | cpython-git-f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847.tar.gz | |
bpo-32311: Implement asyncio.create_task() shortcut (#4848)
* Implement functionality
* Add documentation
Diffstat (limited to 'Lib/asyncio/futures.py')
| -rw-r--r-- | Lib/asyncio/futures.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py index d46a295197..b310962f9f 100644 --- a/Lib/asyncio/futures.py +++ b/Lib/asyncio/futures.py @@ -11,6 +11,7 @@ import sys  from . import base_futures  from . import events +from . import format_helpers  CancelledError = base_futures.CancelledError @@ -79,7 +80,8 @@ class Future:              self._loop = loop          self._callbacks = []          if self._loop.get_debug(): -            self._source_traceback = events.extract_stack(sys._getframe(1)) +            self._source_traceback = format_helpers.extract_stack( +                sys._getframe(1))      _repr_info = base_futures._future_repr_info | 
