From ca36cff888d8d2f007f734c27363503beff617d8 Mon Sep 17 00:00:00 2001 From: matthewwilson-gh Date: Sat, 7 Feb 2026 11:33:05 +0330 Subject: [PATCH] fix the get_event_loop() depricatin issue in asyncio.rst docs/tutorials --- docs/tutorials/asyncio.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/asyncio.rst b/docs/tutorials/asyncio.rst index 704ad03b..e89d9703 100644 --- a/docs/tutorials/asyncio.rst +++ b/docs/tutorials/asyncio.rst @@ -26,7 +26,8 @@ a simulated IO delay, def main(): - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) results = loop.run_until_complete(asyncio.gather( simulated_fetch('http://google.com', 2), simulated_fetch('http://bbc.co.uk', 1),