use sets for ' in { ... }' checks

This commit is contained in:
Mike Fährmann
2026-02-11 22:55:01 +01:00
parent fc589e9ea4
commit 12f5e24ab5
17 changed files with 44 additions and 44 deletions

View File

@@ -66,7 +66,7 @@ def process_content(html, content):
html.append(level)
html.append(">")
elif type in ("listItem", "bulletList", "orderedList", "blockquote"):
elif type in {"listItem", "bulletList", "orderedList", "blockquote"}:
c = type[1]
tag = (
"li" if c == "i" else