summaryrefslogtreecommitdiff
path: root/searx/data
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-29 08:54:12 +0100
committerAlexandre Flament <alex@al-f.net>2022-01-29 08:54:12 +0100
commitf3f61df6a064bf6b10660070c4de4eb6112c4dc6 (patch)
treec140ce4f915073bc737b8366df2dee469dd1acc7 /searx/data
parent8f100d7046cad3fa5ed2fbacdd69e2825a4660a7 (diff)
[mod] remove deprecate code
remove code to support Python 3.5 and Python 3.6
Diffstat (limited to 'searx/data')
-rw-r--r--searx/data/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/data/__init__.py b/searx/data/__init__.py
index 87bfb5477..424440a71 100644
--- a/searx/data/__init__.py
+++ b/searx/data/__init__.py
@@ -38,7 +38,7 @@ def ahmia_blacklist_loader():
This function is used by :py:mod:`searx.plugins.ahmia_filter`.
"""
- with open(str(data_dir / 'ahmia_blacklist.txt'), encoding='utf-8') as f:
+ with open(data_dir / 'ahmia_blacklist.txt', encoding='utf-8') as f:
return f.read().split()