mirror of
https://github.com/searxng/searxng.git
synced 2024-12-23 09:46:31 +00:00
[mod] drop py2 support
This commit is contained in:
parent
52eba0c721
commit
e693bccaf4
1 changed files with 2 additions and 3 deletions
|
@ -99,9 +99,8 @@ if sys.version_info[0] == 3:
|
|||
unicode = str
|
||||
PY3 = True
|
||||
else:
|
||||
PY3 = False
|
||||
logger.warning('\033[1;31m *** Deprecation Warning ***\033[0m')
|
||||
logger.warning('\033[1;31m Python2 is deprecated\033[0m')
|
||||
logger.warning('\033[1;31m Python2 is no longer supported\033[0m')
|
||||
exit(1)
|
||||
|
||||
# serve pages with HTTP/1.1
|
||||
from werkzeug.serving import WSGIRequestHandler
|
||||
|
|
Loading…
Reference in a new issue