[mod] remove unused import

use
from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url  # NOQA
so it is possible to easily remove all unused import using autoflake:
autoflake --in-place --recursive --remove-all-unused-imports searx tests
This commit is contained in:
Alexandre Flament 2020-11-02 11:19:53 +01:00
parent 6489a560ea
commit 3038052c79
31 changed files with 24 additions and 52 deletions

View file

@ -16,8 +16,8 @@
import re
from urllib.parse import urlencode
from lxml import html
from searx import logger, utils
from searx.utils import extract_text, match_language, gen_useragent, eval_xpath
from searx import logger
from searx.utils import eval_xpath, extract_text, match_language
logger = logger.getChild('bing engine')
@ -98,7 +98,6 @@ def response(resp):
result_len = int(result_len_container)
except Exception as e:
logger.debug('result error :\n%s', e)
pass
if result_len and _get_offset_from_pageno(resp.search_params.get("pageno", 0)) > result_len:
return []