From 32889f066f2452f7710ee79251130271b39269a8 Mon Sep 17 00:00:00 2001 From: monosans Date: Sat, 14 Oct 2023 14:24:04 +0300 Subject: [PATCH] Fix uvloop deprecation warning --- proxy_scraper_checker/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index 47f873d0c..9c66af63f 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -24,7 +24,9 @@ def set_event_loop_policy() -> None: except ImportError: pass else: - uvloop.install() # type: ignore[attr-defined] + asyncio.set_event_loop_policy( + uvloop.EventLoopPolicy() # type: ignore[attr-defined] + ) def configure_logging(console: Console, *, debug: bool) -> None: