[mod] add py2 deprecation warning to webapp
commit8e3bd3fcbd3a075f4c7edbd0175ae3dc5a87da53
authorAdam Tauber <asciimoo@gmail.com>
dateTue 28 Jan 2020, 15:52 (7 years ago)
parent54675c7
searx/webapp.py+2
@@ -95,6 +95,8 @@ if sys.version_info[0] == 3:
9595 PY3 = True
9696else:
9797 PY3 = False
98+ logger.warning('\033[1;31m *** Deprecation Warning ***\033[0m')
99+ logger.warning('\033[1;31m Python2 is deprecated\033[0m')
98100
99101# serve pages with HTTP/1.1
100102from werkzeug.serving import WSGIRequestHandler