mirror of
https://github.com/searxng/searxng
synced 2024-11-09 01:10:26 +00:00
[mod] remove py 3.6 leftovers
This commit is contained in:
parent
37ec668ae1
commit
5468d97d39
@ -11,16 +11,12 @@ from typing import Any, Dict
|
|||||||
import httpx
|
import httpx
|
||||||
from httpx_socks import AsyncProxyTransport
|
from httpx_socks import AsyncProxyTransport
|
||||||
from python_socks import parse_proxy_url, ProxyConnectionError, ProxyTimeoutError, ProxyError
|
from python_socks import parse_proxy_url, ProxyConnectionError, ProxyTimeoutError, ProxyError
|
||||||
|
import uvloop
|
||||||
|
|
||||||
from searx import logger
|
from searx import logger
|
||||||
|
|
||||||
# Optional uvloop (support Python 3.6)
|
|
||||||
try:
|
uvloop.install()
|
||||||
import uvloop
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
uvloop.install()
|
|
||||||
|
|
||||||
|
|
||||||
logger = logger.getChild('searx.network.client')
|
logger = logger.getChild('searx.network.client')
|
||||||
|
Loading…
Reference in New Issue
Block a user