From fccd6eb7a5581c3b4b8afc69a9e7ce8c680a21b8 Mon Sep 17 00:00:00 2001 From: Pavel Kvach Date: Mon, 11 Mar 2024 01:38:42 +0200 Subject: [PATCH] Fix linting issues --- isso/tests/test_html.py | 2 +- isso/utils/html.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/isso/tests/test_html.py b/isso/tests/test_html.py index 86e27315..5b59b39a 100644 --- a/isso/tests/test_html.py +++ b/isso/tests/test_html.py @@ -67,7 +67,7 @@ def test_sanitizer(self): ['Ha', 'Ha']), ('Ha', 'Ha'), - ('ld.so', 'ld.so'), + ('ld.so', 'ld.so'), ('/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so', '/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so'), ('

Test

', '

Test

'), ('', 'alert("Onoe")')] diff --git a/isso/utils/html.py b/isso/utils/html.py index 4e0aae96..b7b895d2 100644 --- a/isso/utils/html.py +++ b/isso/utils/html.py @@ -27,8 +27,8 @@ def sanitize(self, text): clean_html = bleach.clean(text, tags=self.elements, attributes=self.attributes, strip=True) def set_links(attrs, new=False): - # Linker can misinterpret text as a domain name and create new invalid links. - # To prevent this, we only allow existing links to be modified. + # Linker can misinterpret text as a domain name and create new invalid links. + # To prevent this, we only allow existing links to be modified. if new: return None