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/duckduckgo_images.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/duckduckgo_images.py')
-rw-r--r-- | searx/engines/duckduckgo_images.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/searx/engines/duckduckgo_images.py b/searx/engines/duckduckgo_images.py index 27ef7442e..943b74880 100644 --- a/searx/engines/duckduckgo_images.py +++ b/searx/engines/duckduckgo_images.py @@ -15,12 +15,9 @@ from json import loads from urllib.parse import urlencode -from searx.engines.duckduckgo import ( - _fetch_supported_languages, supported_languages_url, - get_region_code, language_aliases -) +from searx.engines.duckduckgo import get_region_code +from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA from searx.poolrequests import get -from searx.utils import extract_text # engine dependent config categories = ['images'] |