From 5468d97d39d47701e652db88920eb40068312152 Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Sun, 7 Jul 2024 04:28:36 +0000 Subject: [PATCH] [mod] remove py 3.6 leftovers --- searx/network/client.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/searx/network/client.py b/searx/network/client.py index 32bc5af42..05d8e88fa 100644 --- a/searx/network/client.py +++ b/searx/network/client.py @@ -11,16 +11,12 @@ from typing import Any, Dict import httpx from httpx_socks import AsyncProxyTransport from python_socks import parse_proxy_url, ProxyConnectionError, ProxyTimeoutError, ProxyError +import uvloop from searx import logger -# Optional uvloop (support Python 3.6) -try: - import uvloop -except ImportError: - pass -else: - uvloop.install() + +uvloop.install() logger = logger.getChild('searx.network.client')