diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-27 09:16:03 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-27 09:16:03 +0100 |
commit | fcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c (patch) | |
tree | 3e508c94d5ac69869aa69fc686cd54e02bfcad27 /searx/engines/bing_news.py | |
parent | c849731eb1df23b8509a947fcc2807adb34dc730 (diff) | |
download | searxng-fcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c.tar.gz searxng-fcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c.zip |
[format.python] disable py code formatting for some hunks of code
Disable the python code formatting from python-black, where the readability of
code suffers by formatting.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/bing_news.py')
-rw-r--r-- | searx/engines/bing_news.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py index c2515385c..f0bc8bead 100644 --- a/searx/engines/bing_news.py +++ b/searx/engines/bing_news.py @@ -69,21 +69,25 @@ def image_url_cleanup(url_string): def _get_url(query, language, offset, time_range): if time_range in time_range_dict: search_path = search_string_with_time.format( + # fmt: off query = urlencode({ 'q': query, 'setmkt': language }), offset = offset, interval = time_range_dict[time_range] + # fmt: on ) else: # e.g. setmkt=de-de&setlang=de search_path = search_string.format( + # fmt: off query = urlencode({ 'q': query, 'setmkt': language }), offset = offset + # fmt: on ) return base_url + search_path |