diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-11-07 17:50:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 17:50:48 +0100 |
commit | d8d218ffda6b7569625ff9edadbbc9a2b1055e32 (patch) | |
tree | 1c0346361bddaaf5febd26429f0464ee94b1a237 /Lib/asyncio/futures.py | |
parent | 518c6b97868d9c665475a40567b0aa417afad607 (diff) | |
download | cpython-git-d8d218ffda6b7569625ff9edadbbc9a2b1055e32.tar.gz |
[3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. (GH-4314) (#4322)
* bpo-31970: Reduce performance overhead of asyncio debug mode..
(cherry picked from commit 921e9432a1461bbf312c9c6dcc2b916be6c05fa0)
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 511a14b97b..047b132fcb 100644 --- a/Lib/asyncio/futures.py +++ b/Lib/asyncio/futures.py @@ -159,7 +159,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 |