diff options
author | Alexandre Flament <alex@al-f.net> | 2020-11-02 11:19:53 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-11-14 14:11:02 +0100 |
commit | 3038052c79ed16d4e32be9680b426b7a765f4f01 (patch) | |
tree | 6550ad32ecd9e2f47b5562a5561b39f61c7b8807 /searx/engines/bing.py | |
parent | 6489a560ea9cbd8087f9872a8494f6d8ec76bf75 (diff) | |
download | searxng-3038052c79ed16d4e32be9680b426b7a765f4f01.tar.gz searxng-3038052c79ed16d4e32be9680b426b7a765f4f01.zip |
[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
Diffstat (limited to 'searx/engines/bing.py')
-rw-r--r-- | searx/engines/bing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py index a4fa1db78..f0882fcc9 100644 --- a/searx/engines/bing.py +++ b/searx/engines/bing.py @@ -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 [] |