diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-01-13 14:38:38 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-01-15 18:27:21 +0100 |
commit | 87f18b98ec23db87101760ce69bbbbe856a33520 (patch) | |
tree | e260c89ecf2a206395dcb10cbb2facb46da35ce7 /searx/search | |
parent | b0b2efdc8dbfe323ed3d2e10c309aacac315febf (diff) | |
download | searxng-87f18b98ec23db87101760ce69bbbbe856a33520.tar.gz searxng-87f18b98ec23db87101760ce69bbbbe856a33520.zip |
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/search')
-rw-r--r-- | searx/search/checker/impl.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 += ['</' + tag + '>' for tag in HTML_TAGS] pattern = re.compile('|'.join(rep)) |