commit | 3a49dbb98ccc1b90554ed181386316efa38adfba | [log] [tgz] |
---|---|---|
author | hetmankp <728670+hetmankp@users.noreply.github.com> | Tue Oct 04 07:34:35 2022 +1100 |
committer | GitHub <noreply@github.com> | Mon Oct 03 13:34:35 2022 -0700 |
tree | c1bee19994568f421a70243d6b9e4e480e2332ed | |
parent | 873a2f25272ca9fb027866a9730c44ba627b30cc [diff] |
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.