summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-08-31 10:40:29 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-08-31 10:40:29 +0200
commitb83c14cf6b2114686165c5aa568b34851b680970 (patch)
tree867cbdf77e418559e4decdd0266b15bd55d9b723 /searx/engines/google_images.py
parentc6f7a731d5ae34bcc2cb01ed1c6d037ab88e57c8 (diff)
downloadsearxng-b83c14cf6b2114686165c5aa568b34851b680970.tar.gz
searxng-b83c14cf6b2114686165c5aa568b34851b680970.zip
[pylint] Pylint 2.10 - fix use-list-literal & use-dict-literal
Pylint 2.10 added new default checks [1]: use-list-literal Emitted when list() is called with no arguments instead of using [] use-dict-literal Emitted when dict() is called with no arguments instead of using {} [1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r--searx/engines/google_images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index edfc3df9a..f4fbbaa42 100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -66,7 +66,7 @@ filter_mapping = {
def scrap_out_thumbs(dom):
"""Scrap out thumbnail data from <script> tags.
"""
- ret_val = dict()
+ ret_val = {}
for script in eval_xpath(dom, '//script[contains(., "_setImgSrc(")]'):
_script = script.text
# _setImgSrc('0','data:image\/jpeg;base64,\/9j\/4AAQSkZJR ....');