Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Lib/asyncio/__main__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -202,4 +202,5 @@ def interrupt(self) -> None:
break

console.write('exiting asyncio REPL...\n')
loop.close()
sys.exit(return_code)
Original file line numberDiff line numberDiff line change
@@ -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.