removes unneccessary set casts

This commit is contained in:
gridtime 2024-02-06 12:12:56 +01:00
parent 456525aa25
commit 8521182a09
No known key found for this signature in database
GPG Key ID: FB6ACC7A1C9182F8

View File

@ -268,10 +268,10 @@ class HTMLProcessor:
return {
"tags": inline_tags if inline else all_tags,
"attributes": inlines_attributes if inline else attributes,
"empty": set() if inline else set({"hr", "br", "img"}),
"separate": set({"a"}) if inline else set({
"empty": set() if inline else {"hr", "br", "img"},
"separate": {"a"} if inline else {
"a", "p", "li", "table", "tr", "th", "td", "br", "hr", "img",
}),
},
"whitespace": set(),
"keep_typographic_whitespace": True,
"add_nofollow": False,