summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-07-09 15:04:00 +0200
committerAdam Tauber <asciimoo@gmail.com>2020-07-09 15:04:00 +0200
commite693bccaf495678c0a4a1650e51f9d10d7b82162 (patch)
tree3979967e263a8d31dc2339135412b83e3c8b28b8 /searx
parent52eba0c7210c53230fb574176d4bf1af771bf0b4 (diff)
downloadsearxng-e693bccaf495678c0a4a1650e51f9d10d7b82162.tar.gz
searxng-e693bccaf495678c0a4a1650e51f9d10d7b82162.zip
[mod] drop py2 support
Diffstat (limited to 'searx')
-rwxr-xr-xsearx/webapp.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 5d9614789..4b52c0cb3 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -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