Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73beee40 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Fix support of python 3.9

parent 3807396c
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
import hmac
import hmac
import hashlib
import hashlib

from urllib.parse import urlencode
from flask_babel import gettext
from flask_babel import gettext

from searx import settings
from searx import settings
from urllib.parse import urlencode




name = gettext('Rest API')
name = gettext('Rest API')
+1 −1
Original line number Original line Diff line number Diff line
@@ -7,7 +7,7 @@
            <h2>{{_("Page not found")}}</h2>
            <h2>{{_("Page not found")}}</h2>
    
    
            {% autoescape false %}
            {% autoescape false %}
            <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
            <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
            {% endautoescape %}
            {% endautoescape %}
        </div>
        </div>
    </div>
    </div>