mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-142784: make the asyncio REPL call loop.close() at exit (#142785)
This commit is contained in:
parent
1c544acaa5
commit
ddfc155d3a
2 changed files with 4 additions and 0 deletions
|
|
@ -240,4 +240,5 @@ def interrupt(self) -> None:
|
|||
break
|
||||
|
||||
console.write('exiting asyncio REPL...\n')
|
||||
loop.close()
|
||||
sys.exit(return_code)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
The :mod:`asyncio` REPL now properly closes the loop upon the end of interactive session.
|
||||
Previously, it could cause surprising warnings.
|
||||
Contributed by Bartosz Sławecki.
|
||||
Loading…
Add table
Add a link
Reference in a new issue