Replace Flask by Starlette (2/n)

This commit is contained in:
Alexandre Flament 2021-08-13 19:02:01 +02:00
parent 78561ce7bb
commit 1a3c73cf6f
30 changed files with 994 additions and 2235 deletions

View file

@ -10,7 +10,7 @@ from json import loads
from urllib.parse import urlencode
from functools import partial
from flask_babel import gettext
from searx.i18n import gettext
from searx.data import OSM_KEYS_TAGS, CURRENCIES
from searx.utils import searx_useragent

View file

@ -4,7 +4,7 @@
"""
from json import loads
from flask_babel import gettext
from searx.i18n import gettext
# about
about = {

View file

@ -3,10 +3,10 @@
PubMed (Scholar publications)
"""
from flask_babel import gettext
from lxml import etree
from datetime import datetime
from urllib.parse import urlencode
from searx.i18n import gettext
from searx.network import get
# about

View file

@ -29,8 +29,8 @@ from datetime import (
)
from json import loads
from urllib.parse import urlencode
from flask_babel import gettext
from searx.i18n import gettext
from searx.utils import match_language
from searx.exceptions import SearxEngineAPIException
from searx.network import raise_for_httperror