[mod] remove deprecate code

remove code to support Python 3.5 and Python 3.6
This commit is contained in:
Alexandre Flament 2022-01-29 08:54:12 +01:00
parent 8f100d7046
commit f3f61df6a0
2 changed files with 2 additions and 25 deletions

View file

@ -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()