summaryrefslogtreecommitdiff
path: root/searx/engines/yahoo_news.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-27 10:16:20 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-27 10:16:20 +0100
commitd84226bf63757b1d4245ab26e9c081daf42389aa (patch)
tree9c0456ad1a1d9d375311ccd8c9bd3eafd0779114 /searx/engines/yahoo_news.py
parent3d96a9839a12649874b6d4cf9466bd3616b0a03c (diff)
downloadsearxng-d84226bf63757b1d4245ab26e9c081daf42389aa.tar.gz
searxng-d84226bf63757b1d4245ab26e9c081daf42389aa.zip
[fix] issues reported by pylint
Fix pylint issues from commit (3d96a983) [format.python] initial formatting of the python code Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/yahoo_news.py')
-rw-r--r--searx/engines/yahoo_news.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py
index 06f090f74..00f208b17 100644
--- a/searx/engines/yahoo_news.py
+++ b/searx/engines/yahoo_news.py
@@ -39,7 +39,12 @@ paging = True
categories = ['news']
# search-url
-search_url = 'https://news.search.yahoo.com/search' '?{query}&b={offset}'
+search_url = (
+ # fmt: off
+ 'https://news.search.yahoo.com/search'
+ '?{query}&b={offset}'
+ # fmt: on
+)
AGO_RE = re.compile(r'([0-9]+)\s*(year|month|week|day|minute|hour)')
AGO_TIMEDELTA = {