Minor Python2 bug fix

This commit is contained in:
Miroslav Stampar
2025-12-28 11:26:17 +01:00
parent c95f67c7e2
commit 8be94b488f
3 changed files with 4 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ from lib.core.settings import SAFE_HEX_MARKER
from lib.core.settings import UNICODE_ENCODING
from thirdparty import six
from thirdparty.six import unichr as _unichr
from thirdparty.six.moves import html_parser
from thirdparty.six.moves import collections_abc as _collections
try:
@@ -100,7 +101,6 @@ def htmlUnescape(value):
import html
return html.unescape(value)
else:
from six.moves import html_parser
return html_parser.HTMLParser().unescape(value)
return value