diff --git a/searx/tests/test_webapp.py b/searx/tests/test_webapp.py
index 1d12b3a8..bb608ab7 100644
--- a/searx/tests/test_webapp.py
+++ b/searx/tests/test_webapp.py
@@ -51,7 +51,7 @@ class ViewsTestCase(SearxTestCase):
result.data
)
self.assertIn(
- '
first test content
',
+ 'first test content
', # noqa
result.data
)
diff --git a/searx/utils.py b/searx/utils.py
index e881a8b1..c6f3394c 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -28,7 +28,8 @@ def highlight_content(content, query):
query = query.decode('utf-8')
if content.lower().find(query.lower()) > -1:
query_regex = u'({0})'.format(re.escape(query))
- content = re.sub(query_regex, '\\1', content, flags=re.I | re.U)
+ content = re.sub(query_regex, '\\1',
+ content, flags=re.I | re.U)
else:
regex_parts = []
for chunk in query.split():
@@ -37,7 +38,8 @@ def highlight_content(content, query):
else:
regex_parts.append(u'{0}'.format(re.escape(chunk)))
query_regex = u'({0})'.format('|'.join(regex_parts))
- content = re.sub(query_regex, '\\1', content, flags=re.I | re.U)
+ content = re.sub(query_regex, '\\1',
+ content, flags=re.I | re.U)
return content