We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asyncio.Runner
1 parent 875fd2a commit 4377d82Copy full SHA for 4377d82
1 file changed
Lib/asyncio/__main__.py
@@ -192,8 +192,8 @@ def interrupt(self) -> None:
192
from _pyrepl.main import CAN_USE_PYREPL
193
194
return_code = 0
195
- runner = asyncio.Runner()
196
- loop = runner.get_loop()
+ loop = asyncio.new_event_loop()
+ asyncio.set_event_loop(loop)
197
198
repl_locals = {'asyncio': asyncio}
199
for key in {'__name__', '__package__',
@@ -245,5 +245,4 @@ def interrupt(self) -> None:
245
break
246
247
console.write('exiting asyncio REPL...\n')
248
- runner.close()
249
sys.exit(return_code)
0 commit comments