mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
[mod] add py2 deprecation warning to webapp
This commit is contained in:
parent
54675c7690
commit
8e3bd3fcbd
@ -95,6 +95,8 @@ if sys.version_info[0] == 3:
|
|||||||
PY3 = True
|
PY3 = True
|
||||||
else:
|
else:
|
||||||
PY3 = False
|
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
|
# serve pages with HTTP/1.1
|
||||||
from werkzeug.serving import WSGIRequestHandler
|
from werkzeug.serving import WSGIRequestHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user