Skip to content

Commit 4639600

Browse files
committed
Call .stop() on the event loop when the asyncio REPL exits
1 parent 9cbbf21 commit 4639600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,6 @@ def interrupt(self) -> None:
239239
else:
240240
break
241241

242+
loop.close()
242243
console.write('exiting asyncio REPL...\n')
243244
sys.exit(return_code)

0 commit comments

Comments
 (0)