From 50d5a9ff60e16324ffa68b9a37ca87a7de81c450 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 9 Mar 2024 08:34:43 +0100 Subject: [fix] issues reported by pylint 3.1.0 Signed-off-by: Markus Heiser --- searxng_extra/update/update_currencies.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'searxng_extra') diff --git a/searxng_extra/update/update_currencies.py b/searxng_extra/update/update_currencies.py index a126d1532..c604e5420 100755 --- a/searxng_extra/update/update_currencies.py +++ b/searxng_extra/update/update_currencies.py @@ -97,8 +97,7 @@ def add_currency_label(db, label, iso4217, language): def wikidata_request_result_iterator(request): result = wikidata.send_wikidata_query(request.replace('%LANGUAGES_SPARQL%', LANGUAGES_SPARQL)) if result is not None: - for r in result['results']['bindings']: - yield r + yield from result['results']['bindings'] def fetch_db(): -- cgit v1.2.3-54-g00ecf