diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-12 11:43:04 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-12 11:43:04 -0400 |
commit | e8944cb217747ccf32073aa284dc28ffd1f8dd55 (patch) | |
tree | 706b5b2022e5a01f45eb2f7ee900e6e5a0e36e9e /Lib/idlelib/ScriptBinding.py | |
parent | c2dd680115b38783dbdf5c84cae932558b35c45b (diff) | |
download | cpython-git-e8944cb217747ccf32073aa284dc28ffd1f8dd55.tar.gz |
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile. Most of asyncio tests
do not call loop.close() at all. Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.
Issue #24017.
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
0 files changed, 0 insertions, 0 deletions