From 8e3bd3fcbd3a075f4c7edbd0175ae3dc5a87da53 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 28 Jan 2020 15:52:50 +0100 Subject: [PATCH] [mod] add py2 deprecation warning to webapp --- searx/webapp.py | 2 ++ 1 file changed, 2 insertions(+) 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