on master help sign in
Drop Python 2 (2/n): templates
78df10fDalf
searx/templates/courgette/404.html+1−1
@@ -3,7 +3,7 @@
3<div class="center">
3<div class="center">
4 <h1>{{ _('Page not found') }}</h1>
4 <h1>{{ _('Page not found') }}</h1>
5 {% autoescape false %}
5 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7 {% endautoescape %}
7 {% endautoescape %}
8</div>
8</div>
9{% endblock %}
9{% endblock %}
searx/templates/legacy/404.html+1−1
@@ -3,7 +3,7 @@
3<div class="center">
3<div class="center">
4 <h1>{{ _('Page not found') }}</h1>
4 <h1>{{ _('Page not found') }}</h1>
5 {% autoescape false %}
5 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7 {% endautoescape %}
7 {% endautoescape %}
8</div>
8</div>
9{% endblock %}
9{% endblock %}
searx/templates/oscar/404.html+1−1
@@ -3,7 +3,7 @@
3<div class="text-center">
3<div class="text-center">
4 <h1>{{ _('Page not found') }}</h1>
4 <h1>{{ _('Page not found') }}</h1>
5 {% autoescape false %}
5 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7 {% endautoescape %}
7 {% endautoescape %}
8</div>
8</div>
9{% endblock %}
9{% endblock %}
searx/templates/simple/404.html+1−1
@@ -3,7 +3,7 @@
3<div class="center">
3<div class="center">
4 <h1>{{ _('Page not found') }}</h1>
4 <h1>{{ _('Page not found') }}</h1>
5 {% autoescape false %}
5 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7 {% endautoescape %}
7 {% endautoescape %}
8</div>
8</div>
9{% endblock %}
9{% endblock %}
searx/webapp.py−2
@@ -408,8 +408,6 @@ def render(template_name, override_theme=None, **kwargs):
408
408
409 kwargs['results_on_new_tab'] = request.preferences.get_value('results_on_new_tab')
409 kwargs['results_on_new_tab'] = request.preferences.get_value('results_on_new_tab')
410
410
411− kwargs['unicode'] = str
412−
413 kwargs['preferences'] = request.preferences
411 kwargs['preferences'] = request.preferences
414
412
415 kwargs['brand'] = brand
413 kwargs['brand'] = brand