From f3f61df6a064bf6b10660070c4de4eb6112c4dc6 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 29 Jan 2022 08:54:12 +0100 Subject: [mod] remove deprecate code remove code to support Python 3.5 and Python 3.6 --- searx/data/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/data/__init__.py') 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() -- cgit v1.2.3