diff options
author | hetmankp <728670+hetmankp@users.noreply.github.com> | 2022-10-04 07:34:35 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 13:34:35 -0700 |
commit | 3a49dbb98ccc1b90554ed181386316efa38adfba (patch) | |
tree | c1bee19994568f421a70243d6b9e4e480e2332ed /Python/Python-ast.c | |
parent | 873a2f25272ca9fb027866a9730c44ba627b30cc (diff) | |
download | cpython-3a49dbb98ccc1b90554ed181386316efa38adfba.tar.gz cpython-3a49dbb98ccc1b90554ed181386316efa38adfba.zip |
gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (#97765)
Ensure that the event loop's `_thread_id` attribute and the asyncgen hooks set by `sys.set_asyncgen_hooks()` are always restored no matter where a KeyboardInterrupt exception is raised.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions