mirror of
https://github.com/python/cpython.git
synced 2026-05-14 16:38:19 -04:00
3a49dbb98c
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.