mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
webapp.py: use html.escape if cgi.escape is not available
- cgi.escape was removed in python 3.8 - also use html.escape in framalibre.py
This commit is contained in:
@@ -41,7 +41,10 @@ except:
|
||||
logger.critical("cannot import dependency: pygments")
|
||||
from sys import exit
|
||||
exit(1)
|
||||
from cgi import escape
|
||||
try:
|
||||
from cgi import escape
|
||||
except:
|
||||
from html import escape
|
||||
from datetime import datetime, timedelta
|
||||
from time import time
|
||||
from werkzeug.contrib.fixers import ProxyFix
|
||||
|
||||
Reference in New Issue
Block a user