##// END OF EJS Templates
Backport PR #13269: Fix DeprecationWarning: There is no current event loop
Matthias Bussonnier -
Show More
@@ -461,7 +461,7 b' class TerminalInteractiveShell(InteractiveShell):'
461 # while/true inside which will freeze the prompt.
461 # while/true inside which will freeze the prompt.
462
462
463 try:
463 try:
464 old_loop = asyncio.get_event_loop()
464 old_loop = asyncio.get_running_loop()
465 except RuntimeError:
465 except RuntimeError:
466 # This happens when the user used `asyncio.run()`.
466 # This happens when the user used `asyncio.run()`.
467 old_loop = None
467 old_loop = None
General Comments 0
You need to be logged in to leave comments. Login now