diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-11-07 16:23:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 16:23:29 (GMT) |
commit | 921e9432a1461bbf312c9c6dcc2b916be6c05fa0 (patch) | |
tree | fe7133dd95ad4d039de908df4af3bc71ef1f0bc8 /Lib/asyncio/futures.py | |
parent | 1e5d54cfa031f1de9ee2d2e968e0551b6e2397b7 (diff) | |
download | cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.zip cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.tar.gz cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.tar.bz2 |
bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314)
* bpo-31970: Reduce performance overhead of asyncio debug mode.
Diffstat (limited to 'Lib/asyncio/futures.py')
-rw-r--r-- | Lib/asyncio/futures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py index 3dc9c500..472f2a8 100644 --- a/Lib/asyncio/futures.py +++ b/Lib/asyncio/futures.py @@ -79,7 +79,7 @@ class Future: self._loop = loop self._callbacks = [] if self._loop.get_debug(): - self._source_traceback = traceback.extract_stack(sys._getframe(1)) + self._source_traceback = events.extract_stack(sys._getframe(1)) _repr_info = base_futures._future_repr_info |