Skip to content

Commit d9e0bac

Browse files
committed
fix unnecessary dict
1 parent 195000f commit d9e0bac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wagtailmarkdown/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def _transform_markdown_into_html(text):
3434
def _sanitise_markdown_html(markdown_html):
3535
nh3_kwargs = _get_nh3_kwargs()
3636
nh3_kwargs["tags"] = set(nh3_kwargs["tags"])
37-
nh3_kwargs["attributes"] = {
38-
key: set(value) for key, value in nh3_kwargs["attributes"].items()
39-
}
37+
nh3_kwargs["attributes"] = dict(
38+
(key, set(value)) for key, value in nh3_kwargs["attributes"].items()
39+
)
4040
nh3_kwargs["filter_style_properties"] = set(
4141
nh3_kwargs["filter_style_properties"]
4242
)

0 commit comments

Comments
 (0)