on master help sign in
[mod] drop py2 support
commite693bccaf495678c0a4a1650e51f9d10d7b82162 authorAdam Tauber <asciimoo@gmail.com> dateThu 9 Jul 2020, 15:04 (6 years ago) parent52eba0c
1 file changed+2−3
searx/webapp.py+2−3
searx/webapp.py+2−3
@@ -99,9 +99,8 @@ if sys.version_info[0] == 3:
9999 unicode = str
100100 PY3 = True
101101else:
102− PY3 = False
103− logger.warning('\033[1;31m *** Deprecation Warning ***\033[0m')
104− logger.warning('\033[1;31m Python2 is deprecated\033[0m')
102+ logger.warning('\033[1;31m Python2 is no longer supported\033[0m')
103+ exit(1)
105104
106105# serve pages with HTTP/1.1
107106from werkzeug.serving import WSGIRequestHandler