summaryrefslogtreecommitdiff
path: root/searx/infopage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-03-12 15:37:45 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-03-12 15:45:28 +0100
commit59100e852573cbc01b602b1637b0d4a02a863a9d (patch)
tree99302384995f93435869c477cdb1099e81f76c03 /searx/infopage
parent8751940169378d89a3151df57a40d6ada21f035c (diff)
downloadsearxng-59100e852573cbc01b602b1637b0d4a02a863a9d.tar.gz
searxng-59100e852573cbc01b602b1637b0d4a02a863a9d.zip
[fix] add module for backward compatibility
cache_property has been added in py3.8 [1] To support cache_property in py3.7 the implementation from 3.8 has been copied to compat.py. This code can be cleanup with EOL of py3.7. [1] https://docs.python.org/3/library/functools.html#functools.cached_property Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/infopage')
-rw-r--r--searx/infopage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/infopage/__init__.py b/searx/infopage/__init__.py
index d7736a934..5c58193c1 100644
--- a/searx/infopage/__init__.py
+++ b/searx/infopage/__init__.py
@@ -23,7 +23,6 @@ __all__ = ['InfoPage', 'MistletoePage', 'InfoPageSet']
import os.path
import logging
-from functools import cached_property
import typing
import urllib.parse
@@ -32,6 +31,7 @@ from flask.helpers import url_for
import mistletoe
from .. import get_setting
+from ..compat import cached_property
from ..version import GIT_URL
logger = logging.getLogger('doc')