Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[mod] add py2 deprecation warning to webapp

Adam Tauber8e3bd3fcbd3a
diff --git a/searx/webapp.py b/searx/webapp.py
index 212c874c9..aadefe6b9 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -95,6 +95,8 @@ if sys.version_info[0] == 3:
PY3 = True
else:
PY3 = False
+ logger.warning('\033[1;31m *** Deprecation Warning ***\033[0m')
+ logger.warning('\033[1;31m Python2 is deprecated\033[0m')
# serve pages with HTTP/1.1
from werkzeug.serving import WSGIRequestHandler