summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo_definitions.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-11-02 11:19:53 +0100
committerAlexandre Flament <alex@al-f.net>2020-11-14 14:11:02 +0100
commit3038052c79ed16d4e32be9680b426b7a765f4f01 (patch)
tree6550ad32ecd9e2f47b5562a5561b39f61c7b8807 /searx/engines/duckduckgo_definitions.py
parent6489a560ea9cbd8087f9872a8494f6d8ec76bf75 (diff)
downloadsearxng-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/duckduckgo_definitions.py')
-rw-r--r--searx/engines/duckduckgo_definitions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/duckduckgo_definitions.py b/searx/engines/duckduckgo_definitions.py
index f8bc44e46..5758022d2 100644
--- a/searx/engines/duckduckgo_definitions.py
+++ b/searx/engines/duckduckgo_definitions.py
@@ -15,11 +15,11 @@ from lxml import html
from searx import logger
from searx.data import WIKIDATA_UNITS
-from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url, language_aliases
+from searx.engines.duckduckgo import language_aliases
+from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA
from searx.utils import extract_text, html_to_text, match_language, get_string_replaces_function
from searx.external_urls import get_external_url, get_earth_coordinates_url, area_to_osm_zoom
-
logger = logger.getChild('duckduckgo_definitions')
URL = 'https://api.duckduckgo.com/'\