From 87f18b98ec23db87101760ce69bbbbe856a33520 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 13 Jan 2024 14:38:38 +0100 Subject: [PATCH] [fix] SyntaxWarning: invalid escape sequence '\>' This patch fixes issue reported by ``make test.unit``:: searx/search/checker/impl.py:39: SyntaxWarning: invalid escape sequence '\>' rep = ['<' + tag + '[^\>]*>' for tag in HTML_TAGS] Signed-off-by: Markus Heiser --- searx/search/checker/impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.py index 087ced5c2..b5dff1fd2 100644 --- a/searx/search/checker/impl.py +++ b/searx/search/checker/impl.py @@ -36,7 +36,7 @@ HTML_TAGS = [ def get_check_no_html(): - rep = ['<' + tag + '[^\>]*>' for tag in HTML_TAGS] + rep = ['<' + tag + r'[^\>]*>' for tag in HTML_TAGS] rep += ['' for tag in HTML_TAGS] pattern = re.compile('|'.join(rep))