From 907c9832b00ac8c592fb7a219045a907a9c8df10 Mon Sep 17 00:00:00 2001 From: Dmitry <20801433+Arexils@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:36:11 +0300 Subject: [PATCH] Remove deprecated uvloop method usage (#1781) Signed-off-by: Dmitry <20801433+Arexils@users.noreply.github.com> --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98645aeb0d..b0b738d747 100644 --- a/README.md +++ b/README.md @@ -286,11 +286,12 @@ This replaces the default `asyncio` event loop with one that uses `libuv` intern and then amend your script to be something similar to the following example to utilise it in your application: ```py +import asyncio import os if os.name != "nt": import uvloop - uvloop.install() + asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) # Your code goes here