diff options
author | Allen <64094914+allendema@users.noreply.github.com> | 2024-07-07 04:28:36 +0000 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-07-13 17:20:50 +0200 |
commit | 5468d97d39d47701e652db88920eb40068312152 (patch) | |
tree | 751fc833692c714648020ccaa4bd9b3049efdc7a /searx/network | |
parent | 37ec668ae162c92a74653090bee82afdcfc35f65 (diff) | |
download | searxng-5468d97d39d47701e652db88920eb40068312152.tar.gz searxng-5468d97d39d47701e652db88920eb40068312152.zip |
[mod] remove py 3.6 leftovers
Diffstat (limited to 'searx/network')
-rw-r--r-- | searx/network/client.py | 10 |
1 files 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') |