From 8205f170ff983e5240d32dc17d7fdb526ebe5fe7 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 11 Mar 2024 07:45:08 +0100 Subject: [mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION Signed-off-by: Markus Heiser --- searx/engines/digbt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/engines/digbt.py') diff --git a/searx/engines/digbt.py b/searx/engines/digbt.py index 2914e9228..ae78f1a9e 100644 --- a/searx/engines/digbt.py +++ b/searx/engines/digbt.py @@ -37,9 +37,9 @@ def response(resp): search_res = dom.xpath('.//td[@class="x-item"]') if not search_res: - return list() + return [] - results = list() + results = [] for result in search_res: url = urljoin(URL, result.xpath('.//a[@title]/@href')[0]) title = extract_text(result.xpath('.//a[@title]')) -- cgit v1.2.3